{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/LAPALE data.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}23 Jan 2018, 18:30:00

{com}. do "/var/folders/26/r73q2k913rn4fwkqcq5sswbw0000gn/T//SD00242.000000"
{txt}
{com}. ********************************************************************
. *       "ELECTORAL VOLATILITY IN LATIN AMERICA"
. *       This do file replicates all analyses in the paper and appendix
. *       Created using Stata 13.2
. *       Contact: Mollie J. Cohen (mollie.cohen@gmail.com)
. *       Last updated: 1/23/2018
. ********************************************************************
. *       Key variables from LAPALE: efncand ncand typea typea2pct 
. *       typea5pct typea7pct typeb typeb2pct typeb5pct typeb7pct totvol 
. *       totvol2 totvol5 totvol7 
. *       Key variables from WB/ IDB: inflalog, exratelog, growth
. ********************************************************************
. 
. *****************************************************
. *       CREATING VOLATILITY, EFN MEASURES USING LAPALE  *
. *****************************************************
. 
. /*
> The code below calculates EFNC/EFNP and volatility by election type
> to replicate: 
> 1) run the below code for presidential elections and save; 
> 2) re-import the LAPALE data and run the following code for legislative elections;
> 3) append saved presidential election data to leg. results
> */
. 
. *Read in LAPALE data with voteshares from excel file: FRAGMENTATION DATASET FOR LA 01192018
. clear all
{txt}
{com}. import excel using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/excel/FRAGMENTATION DATASET FOR LA - 01192018.xlsx", first
{res}{txt}
{com}. 
. set more off
{txt}
{com}. 
. *renaming variables to use lower case
. rename COUNTRY country
{res}{txt}
{com}. rename YEAR year
{res}{txt}
{com}. *generating numerical country, election type variables
. encode country, gen(pais)
{txt}
{com}. rename TYPE type
{res}{txt}
{com}. encode type, gen(elec_type)
{txt}
{com}. *recoding the numerical "type" variable into pres. and leg. dummies
. gen pres_elec=0
{txt}
{com}. replace pres_elec=1 if elec_type==2
{txt}(146 real changes made)

{com}. gen leg_elec=0
{txt}
{com}. replace leg_elec=1 if elec_type==1
{txt}(171 real changes made)

{com}. 
. *********************
. ** EFN CALCULATION **
. *********************
. 
. *keep if leg_elec==1
. keep if pres_elec==1
{txt}(171 observations deleted)

{com}. xtset pais year
{res}{txt}{col 8}panel variable:  {res}pais (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 1978 to 2017, but with gaps
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. *reshaping the data to long format
. gen id=_n
{txt}
{com}. reshape long vote_share, i(id) j(vote)
{txt}(note: j = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}     146   {txt}->{res}  115340
{txt}Number of variables            {res}     798   {txt}->{res}      10
{txt}j variable (790 values)                   ->   {res}vote
{txt}xij variables:
{res}vote_share1 vote_share2 ... vote_share790 {txt}->   {res}vote_share
{txt}{hline 77}

{com}. 
. *denominator for the EFNP/EFNC calculation: sum(voteshare^2)
. gen vote_sharesq=vote_share^2
{txt}
{com}. bys pais year: egen efndenom=sum(vote_sharesq)
{txt}
{com}. *creating the EFNP/EFNC variable: 1/[sum(voteshare^2)]
. gen efncand=1/efndenom
{txt}(790 missing values generated)

{com}. 
. *creating the number of parties variable - sum of all ptys. that win >1 vote
. gen pty=0
{txt}
{com}. bys pais year: replace pty=1 if vote_share>=0
{txt}(115340 real changes made)

{com}. replace pty=0 if vote_share==0
{txt}(113800 real changes made)

{com}. by pais year: egen ncand=sum(pty)
{txt}
{com}. 
. *******************************************
. ** VOLATILITY CALCULATIONS, NO THRESHOLD **
. *******************************************
. 
. *PARTY REPLACEMENT VOLATILITY
. *TYPE A [replacement]=[abs[sum(exiting parties(t-1))]+[sum(entering parties(t))]]/2
. 
. *indicators for entry, exit, or stable competition
. *a party is considered to compete if it wins more than 0 votes
. gen compete=0
{txt}
{com}. replace compete=1 if vote_share>0
{txt}(1540 real changes made)

{com}. *if a party does not compete at time t-1, but does at time t, it has entered
. gen enter=0
{txt}
{com}. sort pais vote year
{txt}
{com}. by pais vote: replace enter=1 if compete==1 & compete[_n-1]==0
{txt}(780 real changes made)

{com}. *if a party competes at time t-1 but not at time t, it has exited
. gen exit=0
{txt}
{com}. by pais vote: replace exit=1 if compete[_n-1]==1 & compete==0
{txt}(791 real changes made)

{com}. *parties that compete at time t-1 and time t are "stable"
. gen stable=0
{txt}
{com}. by pais vote: replace stable=1 if compete[_n-1]==1 & compete==1
{txt}(574 real changes made)

{com}. 
. *exit volatility - the share of votes won at t-1 by exiting parties
. by pais vote: gen vtexit=vote_share[_n-1] if exit==1
{txt}(114549 missing values generated)

{com}. bys pais year: egen sumexit=sum(vtexit)
{txt}
{com}. 
. *enter volatility - the share of votes won at time t by entering parties
. bys pais vote: gen vtenter=vote_share if enter==1
{txt}(114560 missing values generated)

{com}. bys pais year: egen sumenter=sum(vtenter)
{txt}
{com}. 
. *type a - no threshold
. *sum of all votes for entering/ exiting parties; take the absolute value; divide by 2
. gen enterexitvt=sumexit+sumenter
{txt}
{com}. gen absenterexitvt=abs(enterexitvt)
{txt}
{com}. gen typea=absenterexitvt/2
{txt}
{com}. 
. *2pct threshold - repeat operations for parties winning >2% of vote
. bys pais year: egen sumexit2=sum(vtexit) if vtexit>=0.02
{txt}(547 missing values generated)

{com}. bys pais year: egen sumenter2=sum(vtenter) if vtenter>=0.02
{txt}(502 missing values generated)

{com}. 
. gen enterexit2=sumexit2+sumenter2
{txt}(1049 missing values generated)

{com}. gen absenterexit2=abs(enterexit2)
{txt}(1049 missing values generated)

{com}. gen typea2pct=absenterexit2/2
{txt}(1049 missing values generated)

{com}. 
. *5pct threshold - repeat operations for parties winning >5% of vote
. bys pais year: egen sumexit5=sum(vtexit) if vtexit>=0.05
{txt}(637 missing values generated)

{com}. bys pais year: egen sumenter5=sum(vtenter) if vtenter>=0.05
{txt}(584 missing values generated)

{com}. 
. gen enterexit5=sumexit5+sumenter5
{txt}(1221 missing values generated)

{com}. gen absenterexit5=abs(enterexit5)
{txt}(1221 missing values generated)

{com}. gen typea5pct=absenterexit5/2
{txt}(1221 missing values generated)

{com}. 
. *7pct threshold - repeat operations for parties winning >7% of vote
. bys pais year: egen sumexit7=sum(vtexit) if vtexit>=0.07
{txt}(656 missing values generated)

{com}. bys pais year: egen sumenter7=sum(vtenter) if vtenter>=0.07
{txt}(614 missing values generated)

{com}. 
. gen enterexit7=sumexit7+sumenter7
{txt}(1270 missing values generated)

{com}. gen absenterexit7=abs(enterexit7)
{txt}(1270 missing values generated)

{com}. gen typea7pct=absenterexit7/2
{txt}(1270 missing values generated)

{com}. 
. 
. **********************************************
. **              VOLATILITY AMONG STABLE PARTIES         **
. **********************************************
. 
. *repeats the above operations for only those parties competing stably over time
. *absolute value of changing vote shares by party
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable=vote_share-vote_share[_n-1] if stable==1
{txt}(114766 missing values generated)

{com}. gen abstdiffstable=abs(diffstable)
{txt}(114766 missing values generated)

{com}. 
. *generating type b [stable party]: [abs[sum(voteshare(t-1)-voteshare(t))]]/2
. bys pais year: egen sumstablevt=sum(abstdiffstable)
{txt}
{com}. gen typeb=sumstablevt/2
{txt}
{com}. 
. *2pct threshold - repeat operations for parties winning >2% of vote
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable2=vote_share-vote_share[_n-1] if stable==1 & vote_share>=.02
{txt}(115037 missing values generated)

{com}. gen abstdiffstable2=abs(diffstable2)
{txt}(115037 missing values generated)

{com}. 
. bys pais year: egen sumstablevt2=sum(abstdiffstable2)
{txt}
{com}. gen typeb2pct=sumstablevt2/2
{txt}
{com}. 
. *5pct threshold - repeat operations for parties winning >5% of vote
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable5=vote_share-vote_share[_n-1] if stable==1 & vote_share>=.05
{txt}(115095 missing values generated)

{com}. gen abstdiffstable5=abs(diffstable5)
{txt}(115095 missing values generated)

{com}. 
. bys pais year: egen sumstablevt5=sum(abstdiffstable5)
{txt}
{com}. gen typeb5pct=sumstablevt5/2
{txt}
{com}. 
. *7pct threshold - repeat operations for parties winning >7% of vote
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable7=vote_share-vote_share[_n-1] if stable==1 & vote_share>=.07
{txt}(115109 missing values generated)

{com}. gen abstdiffstable7=abs(diffstable7)
{txt}(115109 missing values generated)

{com}. 
. bys pais year: egen sumstablevt7=sum(abstdiffstable7)
{txt}
{com}. gen typeb7pct=sumstablevt7/2
{txt}
{com}. 
. corr typeb typeb2pct typeb5pct typeb7pct
{txt}(obs=115340)

             {c |}    typeb typeb2~t typeb5~t typeb7~t
{hline 13}{c +}{hline 36}
       typeb {c |}{res}   1.0000
   {txt}typeb2pct {c |}{res}   0.9374   1.0000
   {txt}typeb5pct {c |}{res}   0.8775   0.9459   1.0000
   {txt}typeb7pct {c |}{res}   0.8383   0.9136   0.9640   1.0000

{txt}
{com}. 
. *dropping constituent measures
. drop vtexit vtenter diffstable diffstable5 abstdiffstable5 diffstable7 abstdiffstable7 efndenom sumexit sumenter enterexitvt absenterexitvt sumexit2 sumenter2 enterexit2 absenterexit2 sumexit5 sumenter5 enterexit5 absenterexit5 sumexit7 sumenter7 enterexit7 absenterexit7 sumstablevt sumstablevt2 sumstablevt5 sumstablevt7
{txt}
{com}. drop  compete enter exit stable vote_sharesq
{txt}
{com}. drop abstdiffstable diffstable2 abstdiffstable2
{txt}
{com}. 
. *carrying forward missing volatility values
. gsort id - typea2pct
{txt}
{com}. carryforward typea2pct, gen(typea2)
typea2:  {txt}(1049 real changes made)
{res}{txt}
{com}. gsort id - typea5pct
{txt}
{com}. carryforward typea5pct, gen(typea5)
typea5:  {txt}(1221 real changes made)
{res}{txt}
{com}. gsort id - typea7pct
{txt}
{com}. carryforward typea7pct, gen(typea7)
typea7:  {txt}(1270 real changes made)
{res}{txt}
{com}. drop typea2pct typea5pct typea7pct
{txt}
{com}. 
. *reshaping and saving data in wide format
. reshape wide pty vote_share, i(id) j(vote)
{txt}(note: j = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790)

Data{col 36}long{col 43}->{col 48}wide
{hline 77}
Number of obs.                 {res}  115340   {txt}->{res}     146
{txt}Number of variables            {res}      21   {txt}->{res}    1598
{txt}j variable (790 values)            {res}vote   {txt}->   (dropped)
xij variables:
                                    {res}pty   {txt}->   {res}pty1 pty2 ... pty790
                             vote_share   {txt}->   {res}vote_share1 vote_share2 ... vote_share790
{txt}{hline 77}

{com}. 
. *save leg and pres data separately prior to appending
. save "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/pres_elec_wide_01232018.dta", replace
{txt}file /Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/pres_elec_wide_01232018.dta saved

{com}. 
{txt}end of do-file

{com}. do "/var/folders/26/r73q2k913rn4fwkqcq5sswbw0000gn/T//SD00242.000000"
{txt}
{com}. 
. *********************************************************
. *       STOP AND REPEAT THE ABOVE CODE FOR LEG. ELECTIONS       *
. *       THEN APPEND FILES FOR THE COMPLETE DATASET                      *
. *********************************************************
. 
{txt}end of do-file

{com}. do "/var/folders/26/r73q2k913rn4fwkqcq5sswbw0000gn/T//SD00242.000000"
{txt}
{com}. clear all
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/26/r73q2k913rn4fwkqcq5sswbw0000gn/T//SD00242.000000"
{txt}
{com}. import excel using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/excel/FRAGMENTATION DATASET FOR LA - 01192018.xlsx", first
{res}{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/26/r73q2k913rn4fwkqcq5sswbw0000gn/T//SD00242.000000"
{txt}
{com}. 
. *renaming variables to use lower case
. rename COUNTRY country
{res}{txt}
{com}. rename YEAR year
{res}{txt}
{com}. *generating numerical country, election type variables
. encode country, gen(pais)
{txt}
{com}. rename TYPE type
{res}{txt}
{com}. encode type, gen(elec_type)
{txt}
{com}. *recoding the numerical "type" variable into pres. and leg. dummies
. gen pres_elec=0
{txt}
{com}. replace pres_elec=1 if elec_type==2
{txt}(146 real changes made)

{com}. gen leg_elec=0
{txt}
{com}. replace leg_elec=1 if elec_type==1
{txt}(171 real changes made)

{com}. 
. *********************
. ** EFN CALCULATION **
. *********************
. 
. keep if leg_elec==1
{txt}(146 observations deleted)

{com}. *keep if pres_elec==1
. xtset pais year
{res}{txt}{col 8}panel variable:  {res}pais (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 1978 to 2017, but with gaps
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. *reshaping the data to long format
. gen id=_n
{txt}
{com}. reshape long vote_share, i(id) j(vote)
{txt}(note: j = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790)

Data{col 36}wide{col 43}->{col 48}long
{hline 77}
Number of obs.                 {res}     171   {txt}->{res}  135090
{txt}Number of variables            {res}     798   {txt}->{res}      10
{txt}j variable (790 values)                   ->   {res}vote
{txt}xij variables:
{res}vote_share1 vote_share2 ... vote_share790 {txt}->   {res}vote_share
{txt}{hline 77}

{com}. 
. *denominator for the EFNP/EFNC calculation: sum(voteshare^2)
. gen vote_sharesq=vote_share^2
{txt}
{com}. bys pais year: egen efndenom=sum(vote_sharesq)
{txt}
{com}. *creating the EFNP/EFNC variable: 1/[sum(voteshare^2)]
. gen efncand=1/efndenom
{txt}
{com}. 
. *creating the number of parties variable - sum of all ptys. that win >1 vote
. gen pty=0
{txt}
{com}. bys pais year: replace pty=1 if vote_share>=0
{txt}(135090 real changes made)

{com}. replace pty=0 if vote_share==0
{txt}(131765 real changes made)

{com}. by pais year: egen ncand=sum(pty)
{txt}
{com}. 
. *******************************************
. ** VOLATILITY CALCULATIONS, NO THRESHOLD **
. *******************************************
. 
. *PARTY REPLACEMENT VOLATILITY
. *TYPE A [replacement]=[abs[sum(exiting parties(t-1))]+[sum(entering parties(t))]]/2
. 
. *indicators for entry, exit, or stable competition
. *a party is considered to compete if it wins more than 0 votes
. gen compete=0
{txt}
{com}. replace compete=1 if vote_share>0
{txt}(3325 real changes made)

{com}. *if a party does not compete at time t-1, but does at time t, it has entered
. gen enter=0
{txt}
{com}. sort pais vote year
{txt}
{com}. by pais vote: replace enter=1 if compete==1 & compete[_n-1]==0
{txt}(1687 real changes made)

{com}. *if a party competes at time t-1 but not at time t, it has exited
. gen exit=0
{txt}
{com}. by pais vote: replace exit=1 if compete[_n-1]==1 & compete==0
{txt}(1573 real changes made)

{com}. *parties that compete at time t-1 and time t are "stable"
. gen stable=0
{txt}
{com}. by pais vote: replace stable=1 if compete[_n-1]==1 & compete==1
{txt}(1421 real changes made)

{com}. 
. *exit volatility - the share of votes won at t-1 by exiting parties
. by pais vote: gen vtexit=vote_share[_n-1] if exit==1
{txt}(133517 missing values generated)

{com}. bys pais year: egen sumexit=sum(vtexit)
{txt}
{com}. 
. *enter volatility - the share of votes won at time t by entering parties
. bys pais vote: gen vtenter=vote_share if enter==1
{txt}(133403 missing values generated)

{com}. bys pais year: egen sumenter=sum(vtenter)
{txt}
{com}. 
. *type a - no threshold
. *sum of all votes for entering/ exiting parties; take the absolute value; divide by 2
. gen enterexitvt=sumexit+sumenter
{txt}
{com}. gen absenterexitvt=abs(enterexitvt)
{txt}
{com}. gen typea=absenterexitvt/2
{txt}
{com}. 
. *2pct threshold - repeat operations for parties winning >2% of vote
. bys pais year: egen sumexit2=sum(vtexit) if vtexit>=0.02
{txt}(1292 missing values generated)

{com}. bys pais year: egen sumenter2=sum(vtenter) if vtenter>=0.02
{txt}(1323 missing values generated)

{com}. 
. gen enterexit2=sumexit2+sumenter2
{txt}(2615 missing values generated)

{com}. gen absenterexit2=abs(enterexit2)
{txt}(2615 missing values generated)

{com}. gen typea2pct=absenterexit2/2
{txt}(2615 missing values generated)

{com}. 
. *5pct threshold - repeat operations for parties winning >5% of vote
. bys pais year: egen sumexit5=sum(vtexit) if vtexit>=0.05
{txt}(1443 missing values generated)

{com}. bys pais year: egen sumenter5=sum(vtenter) if vtenter>=0.05
{txt}(1496 missing values generated)

{com}. 
. gen enterexit5=sumexit5+sumenter5
{txt}(2939 missing values generated)

{com}. gen absenterexit5=abs(enterexit5)
{txt}(2939 missing values generated)

{com}. gen typea5pct=absenterexit5/2
{txt}(2939 missing values generated)

{com}. 
. *7pct threshold - repeat operations for parties winning >7% of vote
. bys pais year: egen sumexit7=sum(vtexit) if vtexit>=0.07
{txt}(1474 missing values generated)

{com}. bys pais year: egen sumenter7=sum(vtenter) if vtenter>=0.07
{txt}(1541 missing values generated)

{com}. 
. gen enterexit7=sumexit7+sumenter7
{txt}(3015 missing values generated)

{com}. gen absenterexit7=abs(enterexit7)
{txt}(3015 missing values generated)

{com}. gen typea7pct=absenterexit7/2
{txt}(3015 missing values generated)

{com}. 
. 
. **********************************************
. **              VOLATILITY AMONG STABLE PARTIES         **
. **********************************************
. 
. *repeats the above operations for only those parties competing stably over time
. *absolute value of changing vote shares by party
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable=vote_share-vote_share[_n-1] if stable==1
{txt}(133669 missing values generated)

{com}. gen abstdiffstable=abs(diffstable)
{txt}(133669 missing values generated)

{com}. 
. *generating type b [stable party]: [abs[sum(voteshare(t-1)-voteshare(t))]]/2
. bys pais year: egen sumstablevt=sum(abstdiffstable)
{txt}
{com}. gen typeb=sumstablevt/2
{txt}
{com}. 
. *2pct threshold - repeat operations for parties winning >2% of vote
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable2=vote_share-vote_share[_n-1] if stable==1 & vote_share>=.02
{txt}(134408 missing values generated)

{com}. gen abstdiffstable2=abs(diffstable2)
{txt}(134408 missing values generated)

{com}. 
. bys pais year: egen sumstablevt2=sum(abstdiffstable2)
{txt}
{com}. gen typeb2pct=sumstablevt2/2
{txt}
{com}. 
. *5pct threshold - repeat operations for parties winning >5% of vote
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable5=vote_share-vote_share[_n-1] if stable==1 & vote_share>=.05
{txt}(134619 missing values generated)

{com}. gen abstdiffstable5=abs(diffstable5)
{txt}(134619 missing values generated)

{com}. 
. bys pais year: egen sumstablevt5=sum(abstdiffstable5)
{txt}
{com}. gen typeb5pct=sumstablevt5/2
{txt}
{com}. 
. *7pct threshold - repeat operations for parties winning >7% of vote
. sort pais vote year
{txt}
{com}. bys pais vote: gen diffstable7=vote_share-vote_share[_n-1] if stable==1 & vote_share>=.07
{txt}(134697 missing values generated)

{com}. gen abstdiffstable7=abs(diffstable7)
{txt}(134697 missing values generated)

{com}. 
. bys pais year: egen sumstablevt7=sum(abstdiffstable7)
{txt}
{com}. gen typeb7pct=sumstablevt7/2
{txt}
{com}. 
. corr typeb typeb2pct typeb5pct typeb7pct
{txt}(obs=135090)

             {c |}    typeb typeb2~t typeb5~t typeb7~t
{hline 13}{c +}{hline 36}
       typeb {c |}{res}   1.0000
   {txt}typeb2pct {c |}{res}   0.9499   1.0000
   {txt}typeb5pct {c |}{res}   0.9145   0.9594   1.0000
   {txt}typeb7pct {c |}{res}   0.8415   0.8871   0.9337   1.0000

{txt}
{com}. 
. *dropping constituent measures
. drop vtexit vtenter diffstable diffstable5 abstdiffstable5 diffstable7 abstdiffstable7 efndenom sumexit sumenter enterexitvt absenterexitvt sumexit2 sumenter2 enterexit2 absenterexit2 sumexit5 sumenter5 enterexit5 absenterexit5 sumexit7 sumenter7 enterexit7 absenterexit7 sumstablevt sumstablevt2 sumstablevt5 sumstablevt7
{txt}
{com}. drop  compete enter exit stable vote_sharesq
{txt}
{com}. drop abstdiffstable diffstable2 abstdiffstable2
{txt}
{com}. 
. *carrying forward missing volatility values
. gsort id - typea2pct
{txt}
{com}. carryforward typea2pct, gen(typea2)
typea2:  {txt}(2615 real changes made)
{res}{txt}
{com}. gsort id - typea5pct
{txt}
{com}. carryforward typea5pct, gen(typea5)
typea5:  {txt}(2939 real changes made)
{res}{txt}
{com}. gsort id - typea7pct
{txt}
{com}. carryforward typea7pct, gen(typea7)
typea7:  {txt}(3015 real changes made)
{res}{txt}
{com}. drop typea2pct typea5pct typea7pct
{txt}
{com}. 
. *reshaping and saving data in wide format
. reshape wide pty vote_share, i(id) j(vote)
{txt}(note: j = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790)

Data{col 36}long{col 43}->{col 48}wide
{hline 77}
Number of obs.                 {res}  135090   {txt}->{res}     171
{txt}Number of variables            {res}      21   {txt}->{res}    1598
{txt}j variable (790 values)            {res}vote   {txt}->   (dropped)
xij variables:
                                    {res}pty   {txt}->   {res}pty1 pty2 ... pty790
                             vote_share   {txt}->   {res}vote_share1 vote_share2 ... vote_share790
{txt}{hline 77}

{com}. 
{txt}end of do-file

{com}. do "/var/folders/26/r73q2k913rn4fwkqcq5sswbw0000gn/T//SD00242.000000"
{txt}
{com}. 
. save "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/leg_elec_wide_01232018.dta", replace
{txt}file /Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/leg_elec_wide_01232018.dta saved

{com}. append using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/pres_elec_wide_01232018.dta"
{txt}(label elec_type already defined)
(label pais already defined)

{com}. save "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/LAPALE_01232018.dta", replace
{txt}file /Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/LAPALE_01232018.dta saved

{com}. 
. *********************************
. *               cleaning up data                *
. *********************************
. 
. *********************************************************
. *       this section reorders, renames, and drops variables *
. *       to make the condensed dataset used for analysis         *
. *********************************************************
. 
. *reordering variables, dropping unneeded variables from reshapem and renaming variables
. *the following creates a clean dataset that includes voteshares 
. order id-country, alphabetic
{txt}
{com}. drop pty1-pty99
{txt}
{com}. order pais, first
{txt}
{com}. order year elec_type pres_elec leg_elec, after(pais)
{txt}
{com}. sort pais year elec_type
{txt}
{com}. gen typea2pct=typea2
{txt}
{com}. gen typea5pct=typea5
{txt}
{com}. gen typea7pct=typea7
{txt}
{com}. order typea2pct typea5pct typea7pct , after(typea)
{txt}
{com}. 
. drop typea2 typea5 typea7
{txt}
{com}. 
. *       generating measures of total volatility - replacement+stable    *
. gen totvol=typea+typeb
{txt}
{com}. gen totvol2=typea2pct+typeb2pct
{txt}
{com}. gen totvol5=typea5pct+typeb5pct
{txt}
{com}. gen totvol7=typea7pct+typeb7pct
{txt}
{com}. 
. order totvol totvol2 totvol5 totvol7, after(typeb7pct)
{txt}
{com}. order id, last
{txt}
{com}. 
. *the following creates a reduced dataset excluding voteshares
. 
. drop vote_share1-vote_share99
{txt}
{com}. 
. save "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/LAPALE_01232018_wide_novt.dta", replace
{txt}file /Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/LAPALE_01232018_wide_novt.dta saved

{com}. 
. *********************************************
. *       Set up for analysis presented in paper  *
. *********************************************
. 
. *Merging election month/ year data with economic indicators from the world bank
. use "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/LAPALE_01232018_wide_novt.dta", clear
{txt}
{com}. *merge election months
. merge m:m pais year using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/econ&time for merge/months for merge.dta"
{res}{txt}{p 0 7 2}
(note: variable
year was 
int, now float to accommodate using data's values)
{p_end}
(label pais already defined)

{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               6
{txt}{col 9}from master{col 30}{res}               5{txt}  (_merge==1)
{col 9}from using{col 30}{res}               1{txt}  (_merge==2)

{col 5}matched{col 30}{res}             313{txt}  (_merge==3)
{col 5}{hline 41}

{com}. order month, after(year)
{txt}
{com}. drop _merge
{txt}
{com}. *merge inflation [from WB, 2016]
. merge m:1 year pais using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/econ&time for merge/inflation_wb.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}             688
{txt}{col 9}from master{col 30}{res}               8{txt}  (_merge==1)
{col 9}from using{col 30}{res}             680{txt}  (_merge==2)

{col 5}matched{col 30}{res}             311{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop _merge
{txt}
{com}. *merge gdp per capita [from WB, 2016]
. merge m:1 year pais using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/econ&time for merge/gdp growth per capita_wb.dta"
{res}
{txt}{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}               8
{txt}{col 9}from master{col 30}{res}               8{txt}  (_merge==1)
{col 9}from using{col 30}{res}               0{txt}  (_merge==2)

{col 5}matched{col 30}{res}             991{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if month==.
{txt}(685 observations deleted)

{com}. drop _merge
{txt}
{com}. *merge exchange rate [from IDB, ECLAC office, 2016]
. merge m:1 year pais using "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/econ&time for merge/exhange rate_idbeclac.dta"
{res}{txt}{p 0 7 2}
(note: variable
country was 
str3, now str34 to accommodate using data's values)
{p_end}

{col 5}Result{col 38}# of obs.
{col 5}{hline 41}
{col 5}not matched{col 30}{res}             535
{txt}{col 9}from master{col 30}{res}              34{txt}  (_merge==1)
{col 9}from using{col 30}{res}             501{txt}  (_merge==2)

{col 5}matched{col 30}{res}             280{txt}  (_merge==3)
{col 5}{hline 41}

{com}. drop if month==.
{txt}(501 observations deleted)

{com}. drop _merge
{txt}
{com}. 
. * dropping irrelevant observations
. drop seriesname countrycode countryname
{txt}
{com}. replace exrate=. if exrate==0
{txt}(17 real changes made, 17 to missing)

{com}. 
. * saving as a new data file
. save "/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/econ&time for merge/LAPALE_01192018_wide_novt_econdata.dta", replace
{txt}file /Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/final data/econ&time for merge/LAPALE_01192018_wide_novt_econdata.dta saved

{com}. 
. * using lagged variables as baseline
. gen ninflation=inflationlag
{txt}(6 missing values generated)

{com}. gen growth=gdpper_growlag
{txt}(4 missing values generated)

{com}. gen nexrate=exratelag
{txt}(34 missing values generated)

{com}. 
. *replacing with same year economic indicators if election in October-December
. replace ninflation=inflation if month>=10
{txt}(119 real changes made)

{com}. replace growth=gdpper_grow if month>=10
{txt}(121 real changes made, 2 to missing)

{com}. replace nexrate=exrate if month>=10
{txt}(86 real changes made, 12 to missing)

{com}. 
. *generating logged variables for large values
. gen inflalog=ln(ninflation)
{txt}(9 missing values generated)

{com}. gen exratelog=ln(nexrate)
{txt}(59 missing values generated)

{com}. 
. **********************************************************************
. 
. /*
> The below code replicates analyses in the paper body and appendix tables
> Please see notes to locate analysis in the text
> */
. 
. *       correlation matrices    *
. 
. *To replicate appendix table A4
. corr inflalog exratelog growth
{txt}(obs=252)

             {c |} inflalog exrat~og   growth
{hline 13}{c +}{hline 27}
    inflalog {c |}{res}   1.0000
   {txt}exratelog {c |}{res}  -0.1342   1.0000
      {txt}growth {c |}{res}  -0.0320   0.0340   1.0000

{txt}
{com}. 
. *coefficients reported in fn. 3
. corr typea typea2pct typea5pct typea7pct typeb typeb2pct typeb5pct typeb7pct 
{txt}(obs=313)

             {c |}    typea typea2~t typea5~t typea7~t    typeb typeb2~t typeb5~t typeb7~t
{hline 13}{c +}{hline 72}
       typea {c |}{res}   1.0000
   {txt}typea2pct {c |}{res}   0.9909   1.0000
   {txt}typea5pct {c |}{res}   0.9782   0.9940   1.0000
   {txt}typea7pct {c |}{res}   0.9724   0.9892   0.9968   1.0000
       {txt}typeb {c |}{res}  -0.0398  -0.0852  -0.1116  -0.1242   1.0000
   {txt}typeb2pct {c |}{res}  -0.1066  -0.1419  -0.1682  -0.1795   0.9428   1.0000
   {txt}typeb5pct {c |}{res}  -0.1247  -0.1562  -0.1794  -0.1862   0.8975   0.9576   1.0000
   {txt}typeb7pct {c |}{res}  -0.1450  -0.1725  -0.1933  -0.1969   0.8432   0.9103   0.9547   1.0000

{txt}
{com}. 
. *       Regression analyses             *
. 
. *Stepwise & complete results for the whole time period 
. *presented in able 1; also appendix tables A5 & A6
. reg typea efn inflalog  year i.pais if leg_elec==0, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     140
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.5448
                                                       {txt}Root MSE      = {res} .20861

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0498515{col 26}{space 2} .0216241{col 37}{space 1}    2.31{col 46}{space 3}0.034{col 54}{space 4} .0042288{col 67}{space 3} .0954743
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2}-.0155927{col 26}{space 2} .0161333{col 37}{space 1}   -0.97{col 46}{space 3}0.347{col 54}{space 4} -.049631{col 67}{space 3} .0184455
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0064298{col 26}{space 2} .0024699{col 37}{space 1}    2.60{col 46}{space 3}0.019{col 54}{space 4} .0012189{col 67}{space 3} .0116408
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .0598923{col 26}{space 2} .0193409{col 37}{space 1}    3.10{col 46}{space 3}0.007{col 54}{space 4} .0190865{col 67}{space 3}  .100698
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.3198359{col 26}{space 2} .0096585{col 37}{space 1}  -33.11{col 46}{space 3}0.000{col 54}{space 4}-.3402135{col 67}{space 3}-.2994582
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2} .0514955{col 26}{space 2} .0424096{col 37}{space 1}    1.21{col 46}{space 3}0.241{col 54}{space 4}-.0379808{col 67}{space 3} .1409718
{txt}{space 8}COL  {c |}{col 14}{res}{space 2} .0079454{col 26}{space 2} .0245611{col 37}{space 1}    0.32{col 46}{space 3}0.750{col 54}{space 4}-.0438739{col 67}{space 3} .0597648
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.3057017{col 26}{space 2} .0272873{col 37}{space 1}  -11.20{col 46}{space 3}0.000{col 54}{space 4}-.3632728{col 67}{space 3}-.2481306
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.3227506{col 26}{space 2} .0230611{col 37}{space 1}  -14.00{col 46}{space 3}0.000{col 54}{space 4}-.3714052{col 67}{space 3} -.274096
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}  .063426{col 26}{space 2} .0284697{col 37}{space 1}    2.23{col 46}{space 3}0.040{col 54}{space 4} .0033602{col 67}{space 3} .1234918
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.2497068{col 26}{space 2} .0351521{col 37}{space 1}   -7.10{col 46}{space 3}0.000{col 54}{space 4}-.3238712{col 67}{space 3}-.1755424
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.1288489{col 26}{space 2} .0350439{col 37}{space 1}   -3.68{col 46}{space 3}0.002{col 54}{space 4} -.202785{col 67}{space 3}-.0549128
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.3474534{col 26}{space 2} .0355577{col 37}{space 1}   -9.77{col 46}{space 3}0.000{col 54}{space 4}-.4224736{col 67}{space 3}-.2724332
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.2902708{col 26}{space 2} .0196436{col 37}{space 1}  -14.78{col 46}{space 3}0.000{col 54}{space 4}-.3317152{col 67}{space 3}-.2488264
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0391432{col 26}{space 2} .0236221{col 37}{space 1}   -1.66{col 46}{space 3}0.116{col 54}{space 4}-.0889816{col 67}{space 3} .0106951
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.3452596{col 26}{space 2} .0507502{col 37}{space 1}   -6.80{col 46}{space 3}0.000{col 54}{space 4}-.4523332{col 67}{space 3} -.238186
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0579467{col 26}{space 2} .0259069{col 37}{space 1}   -2.24{col 46}{space 3}0.039{col 54}{space 4}-.1126056{col 67}{space 3}-.0032879
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .1714831{col 26}{space 2}  .010958{col 37}{space 1}   15.65{col 46}{space 3}0.000{col 54}{space 4} .1483638{col 67}{space 3} .1946025
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.3495942{col 26}{space 2} .0134741{col 37}{space 1}  -25.95{col 46}{space 3}0.000{col 54}{space 4}-.3780221{col 67}{space 3}-.3211663
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.1849986{col 26}{space 2} .0101631{col 37}{space 1}  -18.20{col 46}{space 3}0.000{col 54}{space 4}-.2064408{col 67}{space 3}-.1635563
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-12.54975{col 26}{space 2} 4.970301{col 37}{space 1}   -2.52{col 46}{space 3}0.022{col 54}{space 4}-23.03617{col 67}{space 3}-2.063329
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres1
{txt}
{com}. reg typea efn growth  year i.pais if leg_elec==0 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     141
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.5458
                                                       {txt}Root MSE      = {res} .20819

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0416631{col 26}{space 2} .0193568{col 37}{space 1}    2.15{col 46}{space 3}0.046{col 54}{space 4} .0008239{col 67}{space 3} .0825024
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0056536{col 26}{space 2} .0042796{col 37}{space 1}   -1.32{col 46}{space 3}0.204{col 54}{space 4}-.0146827{col 67}{space 3} .0033756
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0081108{col 26}{space 2} .0025789{col 37}{space 1}    3.15{col 46}{space 3}0.006{col 54}{space 4} .0026697{col 67}{space 3} .0135518
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .0602751{col 26}{space 2} .0148888{col 37}{space 1}    4.05{col 46}{space 3}0.001{col 54}{space 4} .0288625{col 67}{space 3} .0916877
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.3383216{col 26}{space 2} .0108487{col 37}{space 1}  -31.19{col 46}{space 3}0.000{col 54}{space 4}-.3612104{col 67}{space 3}-.3154327
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2} .0719711{col 26}{space 2} .0173076{col 37}{space 1}    4.16{col 46}{space 3}0.001{col 54}{space 4} .0354552{col 67}{space 3} .1084869
{txt}{space 8}COL  {c |}{col 14}{res}{space 2} .0050559{col 26}{space 2} .0155286{col 37}{space 1}    0.33{col 46}{space 3}0.749{col 54}{space 4}-.0277067{col 67}{space 3} .0378184
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.3083694{col 26}{space 2} .0169825{col 37}{space 1}  -18.16{col 46}{space 3}0.000{col 54}{space 4}-.3441993{col 67}{space 3}-.2725395
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} -.317981{col 26}{space 2} .0173415{col 37}{space 1}  -18.34{col 46}{space 3}0.000{col 54}{space 4}-.3545684{col 67}{space 3}-.2813936
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2} .0713464{col 26}{space 2} .0267849{col 37}{space 1}    2.66{col 46}{space 3}0.016{col 54}{space 4} .0148351{col 67}{space 3} .1278577
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.2433806{col 26}{space 2} .0177892{col 37}{space 1}  -13.68{col 46}{space 3}0.000{col 54}{space 4}-.2809125{col 67}{space 3}-.2058487
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.1192337{col 26}{space 2} .0294916{col 37}{space 1}   -4.04{col 46}{space 3}0.001{col 54}{space 4}-.1814557{col 67}{space 3}-.0570118
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.3512302{col 26}{space 2} .0215734{col 37}{space 1}  -16.28{col 46}{space 3}0.000{col 54}{space 4}-.3967461{col 67}{space 3}-.3057144
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.2915842{col 26}{space 2} .0146597{col 37}{space 1}  -19.89{col 46}{space 3}0.000{col 54}{space 4}-.3225136{col 67}{space 3}-.2606549
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0658947{col 26}{space 2} .0198871{col 37}{space 1}   -3.31{col 46}{space 3}0.004{col 54}{space 4}-.1078529{col 67}{space 3}-.0239365
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} -.302325{col 26}{space 2} .0214582{col 37}{space 1}  -14.09{col 46}{space 3}0.000{col 54}{space 4}-.3475979{col 67}{space 3}-.2570522
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0704836{col 26}{space 2} .0142442{col 37}{space 1}   -4.95{col 46}{space 3}0.000{col 54}{space 4}-.1005363{col 67}{space 3}-.0404309
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .1686711{col 26}{space 2}  .009999{col 37}{space 1}   16.87{col 46}{space 3}0.000{col 54}{space 4} .1475751{col 67}{space 3} .1897672
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.3581997{col 26}{space 2} .0112883{col 37}{space 1}  -31.73{col 46}{space 3}0.000{col 54}{space 4} -.382016{col 67}{space 3}-.3343834
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.1970203{col 26}{space 2} .0044112{col 37}{space 1}  -44.66{col 46}{space 3}0.000{col 54}{space 4}-.2063271{col 67}{space 3}-.1877136
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-15.91044{col 26}{space 2} 5.162624{col 37}{space 1}   -3.08{col 46}{space 3}0.007{col 54}{space 4}-26.80262{col 67}{space 3}-5.018251
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres3
{txt}
{com}. reg typea efn exratelog  year i.pais if leg_elec==0, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     117
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.6198
                                                       {txt}Root MSE      = {res}  .1956

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0331484{col 26}{space 2} .0266412{col 37}{space 1}    1.24{col 46}{space 3}0.230{col 54}{space 4}-.0230596{col 67}{space 3} .0893564
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}-.0299547{col 26}{space 2} .0301682{col 37}{space 1}   -0.99{col 46}{space 3}0.335{col 54}{space 4} -.093604{col 67}{space 3} .0336947
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0092547{col 26}{space 2} .0042544{col 37}{space 1}    2.18{col 46}{space 3}0.044{col 54}{space 4} .0002787{col 67}{space 3} .0182306
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .1038185{col 26}{space 2} .0445264{col 37}{space 1}    2.33{col 46}{space 3}0.032{col 54}{space 4}  .009876{col 67}{space 3} .1977611
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.4182233{col 26}{space 2} .0202463{col 37}{space 1}  -20.66{col 46}{space 3}0.000{col 54}{space 4}-.4609393{col 67}{space 3}-.3755074
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2} .0417128{col 26}{space 2} .1788519{col 37}{space 1}    0.23{col 46}{space 3}0.818{col 54}{space 4}-.3356318{col 67}{space 3} .4190574
{txt}{space 8}COL  {c |}{col 14}{res}{space 2} .0536093{col 26}{space 2} .1982846{col 37}{space 1}    0.27{col 46}{space 3}0.790{col 54}{space 4}-.3647347{col 67}{space 3} .4719534
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.2593733{col 26}{space 2} .1556285{col 37}{space 1}   -1.67{col 46}{space 3}0.114{col 54}{space 4}-.5877207{col 67}{space 3} .0689741
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.3779998{col 26}{space 2}  .074443{col 37}{space 1}   -5.08{col 46}{space 3}0.000{col 54}{space 4}-.5350608{col 67}{space 3}-.2209387
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2} .0165357{col 26}{space 2} .0481342{col 37}{space 1}    0.34{col 46}{space 3}0.735{col 54}{space 4}-.0850185{col 67}{space 3}   .11809
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.3354579{col 26}{space 2} .0284995{col 37}{space 1}  -11.77{col 46}{space 3}0.000{col 54}{space 4}-.3955865{col 67}{space 3}-.2753293
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.1605709{col 26}{space 2} .0496758{col 37}{space 1}   -3.23{col 46}{space 3}0.005{col 54}{space 4}-.2653777{col 67}{space 3}-.0557641
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.4205189{col 26}{space 2} .0759804{col 37}{space 1}   -5.53{col 46}{space 3}0.000{col 54}{space 4}-.5808236{col 67}{space 3}-.2602142
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.3946863{col 26}{space 2}  .031284{col 37}{space 1}  -12.62{col 46}{space 3}0.000{col 54}{space 4}-.4606897{col 67}{space 3}-.3286829
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0925067{col 26}{space 2} .0656562{col 37}{space 1}   -1.41{col 46}{space 3}0.177{col 54}{space 4}-.2310293{col 67}{space 3} .0460159
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.3722914{col 26}{space 2} .0310212{col 37}{space 1}  -12.00{col 46}{space 3}0.000{col 54}{space 4}-.4377403{col 67}{space 3}-.3068425
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2} .0370122{col 26}{space 2} .2294488{col 37}{space 1}    0.16{col 46}{space 3}0.874{col 54}{space 4}-.4470825{col 67}{space 3} .5211068
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .1785686{col 26}{space 2} .0123599{col 37}{space 1}   14.45{col 46}{space 3}0.000{col 54}{space 4} .1524915{col 67}{space 3} .2046457
{txt}{space 8}URU  {c |}{col 14}{res}{space 2} -.418921{col 26}{space 2} .0420344{col 37}{space 1}   -9.97{col 46}{space 3}0.000{col 54}{space 4}-.5076058{col 67}{space 3}-.3302362
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.2929166{col 26}{space 2} .0454802{col 37}{space 1}   -6.44{col 46}{space 3}0.000{col 54}{space 4}-.3888713{col 67}{space 3}-.1969618
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-18.05606{col 26}{space 2} 8.508671{col 37}{space 1}   -2.12{col 46}{space 3}0.049{col 54}{space 4}-36.00779{col 67}{space 3}-.1043345
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres4
{txt}
{com}. reg typea efn inflalog growth exratelog year i.pais if leg_elec==0, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     116
                                                       {help j_robustsingular:F(  4,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.6287
                                                       {txt}Root MSE      = {res} .19571

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}  .023412{col 26}{space 2} .0221912{col 37}{space 1}    1.06{col 46}{space 3}0.306{col 54}{space 4}-.0234073{col 67}{space 3} .0702313
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0118222{col 26}{space 2} .0199287{col 37}{space 1}    0.59{col 46}{space 3}0.561{col 54}{space 4}-.0302237{col 67}{space 3} .0538682
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0095663{col 26}{space 2} .0059531{col 37}{space 1}   -1.61{col 46}{space 3}0.126{col 54}{space 4}-.0221262{col 67}{space 3} .0029937
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}-.0308913{col 26}{space 2} .0290082{col 37}{space 1}   -1.06{col 46}{space 3}0.302{col 54}{space 4}-.0920932{col 67}{space 3} .0303106
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0106689{col 26}{space 2} .0048456{col 37}{space 1}    2.20{col 46}{space 3}0.042{col 54}{space 4} .0004456{col 67}{space 3} .0208921
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .1223354{col 26}{space 2}  .046698{col 37}{space 1}    2.62{col 46}{space 3}0.018{col 54}{space 4} .0238111{col 67}{space 3} .2208596
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.4169873{col 26}{space 2}  .024912{col 37}{space 1}  -16.74{col 46}{space 3}0.000{col 54}{space 4}-.4695471{col 67}{space 3}-.3644276
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2} .0747247{col 26}{space 2} .1848861{col 37}{space 1}    0.40{col 46}{space 3}0.691{col 54}{space 4} -.315351{col 67}{space 3} .4648003
{txt}{space 8}COL  {c |}{col 14}{res}{space 2} .0571688{col 26}{space 2} .1884698{col 37}{space 1}    0.30{col 46}{space 3}0.765{col 54}{space 4}-.3404678{col 67}{space 3} .4548054
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.2550296{col 26}{space 2} .1498002{col 37}{space 1}   -1.70{col 46}{space 3}0.107{col 54}{space 4}-.5710803{col 67}{space 3} .0610211
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.3632633{col 26}{space 2} .0740662{col 37}{space 1}   -4.90{col 46}{space 3}0.000{col 54}{space 4}-.5195294{col 67}{space 3}-.2069973
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}  .034703{col 26}{space 2} .0390778{col 37}{space 1}    0.89{col 46}{space 3}0.387{col 54}{space 4} -.047744{col 67}{space 3} .1171501
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.3245318{col 26}{space 2} .0393458{col 37}{space 1}   -8.25{col 46}{space 3}0.000{col 54}{space 4}-.4075443{col 67}{space 3}-.2415193
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.1471074{col 26}{space 2} .0469155{col 37}{space 1}   -3.14{col 46}{space 3}0.006{col 54}{space 4}-.2460905{col 67}{space 3}-.0481243
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.4210536{col 26}{space 2} .0783933{col 37}{space 1}   -5.37{col 46}{space 3}0.000{col 54}{space 4} -.586449{col 67}{space 3}-.2556583
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.3868109{col 26}{space 2} .0334651{col 37}{space 1}  -11.56{col 46}{space 3}0.000{col 54}{space 4} -.457416{col 67}{space 3}-.3162058
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0789064{col 26}{space 2} .0628629{col 37}{space 1}   -1.26{col 46}{space 3}0.226{col 54}{space 4}-.2115356{col 67}{space 3} .0537228
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.3221542{col 26}{space 2} .0539245{col 37}{space 1}   -5.97{col 46}{space 3}0.000{col 54}{space 4} -.435925{col 67}{space 3}-.2083833
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}  .040392{col 26}{space 2} .2183026{col 37}{space 1}    0.19{col 46}{space 3}0.855{col 54}{space 4}-.4201862{col 67}{space 3} .5009702
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .2240807{col 26}{space 2} .0330026{col 37}{space 1}    6.79{col 46}{space 3}0.000{col 54}{space 4} .1544513{col 67}{space 3} .2937101
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.4156725{col 26}{space 2} .0390645{col 37}{space 1}  -10.64{col 46}{space 3}0.000{col 54}{space 4}-.4980913{col 67}{space 3}-.3332536
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.3013667{col 26}{space 2} .0507525{col 37}{space 1}   -5.94{col 46}{space 3}0.000{col 54}{space 4}-.4084452{col 67}{space 3}-.1942882
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-20.86941{col 26}{space 2} 9.726055{col 37}{space 1}   -2.15{col 46}{space 3}0.047{col 54}{space 4} -41.3896{col 67}{space 3}-.3492316
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres5
{txt}
{com}. 
. estout pres1 pres3 pres4 pres5 using prestypea.xls,     ///
>                         cells(b(star fmt(%9.3f)) se(par)) nobaselevels               ///
>              stats(pr2 N, fmt(2) labels( N))   starlevels(+ 0.10 * 0.05 ** 0.01)   ///
>              legend label collabels(none) varlabels(_cons Constant) replace 
{res}{txt}(note: file prestypea.xls not found)
(output written to {browse  `"prestypea.xls"'})

{com}. 
. reg typeb efn inflalog  year i.pais if leg_elec==0 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     140
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.2823
                                                       {txt}Root MSE      = {res}  .0904

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}-.0036621{col 26}{space 2}  .011219{col 37}{space 1}   -0.33{col 46}{space 3}0.748{col 54}{space 4}-.0273321{col 67}{space 3} .0200079
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0208103{col 26}{space 2} .0072087{col 37}{space 1}    2.89{col 46}{space 3}0.010{col 54}{space 4} .0056012{col 67}{space 3} .0360194
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0042404{col 26}{space 2} .0008244{col 37}{space 1}    5.14{col 46}{space 3}0.000{col 54}{space 4}  .002501{col 67}{space 3} .0059799
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .0288885{col 26}{space 2} .0116953{col 37}{space 1}    2.47{col 46}{space 3}0.024{col 54}{space 4} .0042136{col 67}{space 3} .0535633
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2} .0643336{col 26}{space 2} .0042194{col 37}{space 1}   15.25{col 46}{space 3}0.000{col 54}{space 4} .0554315{col 67}{space 3} .0732358
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.0167618{col 26}{space 2}  .014172{col 37}{space 1}   -1.18{col 46}{space 3}0.253{col 54}{space 4}-.0466621{col 67}{space 3} .0131384
{txt}{space 8}COL  {c |}{col 14}{res}{space 2} .0257929{col 26}{space 2} .0076904{col 37}{space 1}    3.35{col 46}{space 3}0.004{col 54}{space 4} .0095675{col 67}{space 3} .0420183
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}  .069298{col 26}{space 2} .0085684{col 37}{space 1}    8.09{col 46}{space 3}0.000{col 54}{space 4} .0512203{col 67}{space 3} .0873758
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} .1103804{col 26}{space 2} .0074018{col 37}{space 1}   14.91{col 46}{space 3}0.000{col 54}{space 4}  .094764{col 67}{space 3} .1259968
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2} .0322039{col 26}{space 2}  .017819{col 37}{space 1}    1.81{col 46}{space 3}0.088{col 54}{space 4}-.0053909{col 67}{space 3} .0697987
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2} .0418308{col 26}{space 2} .0110418{col 37}{space 1}    3.79{col 46}{space 3}0.001{col 54}{space 4} .0185347{col 67}{space 3} .0651269
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0960673{col 26}{space 2} .0210386{col 37}{space 1}    4.57{col 46}{space 3}0.000{col 54}{space 4} .0516798{col 67}{space 3} .1404547
{txt}{space 8}HON  {c |}{col 14}{res}{space 2} .0248449{col 26}{space 2} .0114599{col 37}{space 1}    2.17{col 46}{space 3}0.045{col 54}{space 4} .0006665{col 67}{space 3} .0490232
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2} .0583387{col 26}{space 2} .0061669{col 37}{space 1}    9.46{col 46}{space 3}0.000{col 54}{space 4} .0453276{col 67}{space 3} .0713498
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}  .048718{col 26}{space 2} .0120954{col 37}{space 1}    4.03{col 46}{space 3}0.001{col 54}{space 4}  .023199{col 67}{space 3}  .074237
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} .1262683{col 26}{space 2} .0278676{col 37}{space 1}    4.53{col 46}{space 3}0.000{col 54}{space 4} .0674728{col 67}{space 3} .1850638
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2} .0413975{col 26}{space 2} .0083645{col 37}{space 1}    4.95{col 46}{space 3}0.000{col 54}{space 4}   .02375{col 67}{space 3} .0590451
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .0432665{col 26}{space 2} .0048542{col 37}{space 1}    8.91{col 46}{space 3}0.000{col 54}{space 4}  .033025{col 67}{space 3} .0535079
{txt}{space 8}URU  {c |}{col 14}{res}{space 2} .0124818{col 26}{space 2} .0045192{col 37}{space 1}    2.76{col 46}{space 3}0.013{col 54}{space 4} .0029472{col 67}{space 3} .0220164
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2} .1122828{col 26}{space 2} .0048712{col 37}{space 1}   23.05{col 46}{space 3}0.000{col 54}{space 4} .1020055{col 67}{space 3}   .12256
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-8.450834{col 26}{space 2} 1.650676{col 37}{space 1}   -5.12{col 46}{space 3}0.000{col 54}{space 4}-11.93346{col 67}{space 3}-4.968212
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres6
{txt}
{com}. reg typeb efn growth  year i.pais if leg_elec==0 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     141
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.2242
                                                       {txt}Root MSE      = {res} .09369

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}-.0019319{col 26}{space 2} .0108152{col 37}{space 1}   -0.18{col 46}{space 3}0.860{col 54}{space 4}  -.02475{col 67}{space 3} .0208861
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0018702{col 26}{space 2} .0020041{col 37}{space 1}   -0.93{col 46}{space 3}0.364{col 54}{space 4}-.0060985{col 67}{space 3}  .002358
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0029282{col 26}{space 2} .0007488{col 37}{space 1}    3.91{col 46}{space 3}0.001{col 54}{space 4} .0013484{col 67}{space 3} .0045081
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .0146743{col 26}{space 2} .0087418{col 37}{space 1}    1.68{col 46}{space 3}0.112{col 54}{space 4}-.0037693{col 67}{space 3} .0331178
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2} .0733202{col 26}{space 2} .0044389{col 37}{space 1}   16.52{col 46}{space 3}0.000{col 54}{space 4}  .063955{col 67}{space 3} .0826854
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.0551574{col 26}{space 2} .0079211{col 37}{space 1}   -6.96{col 46}{space 3}0.000{col 54}{space 4}-.0718694{col 67}{space 3}-.0384455
{txt}{space 8}COL  {c |}{col 14}{res}{space 2} .0104011{col 26}{space 2} .0070358{col 37}{space 1}    1.48{col 46}{space 3}0.158{col 54}{space 4}-.0044432{col 67}{space 3} .0252454
{txt}{space 8}COR  {c |}{col 14}{res}{space 2} .0519633{col 26}{space 2} .0079732{col 37}{space 1}    6.52{col 46}{space 3}0.000{col 54}{space 4} .0351412{col 67}{space 3} .0687854
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} .0955572{col 26}{space 2} .0068335{col 37}{space 1}   13.98{col 46}{space 3}0.000{col 54}{space 4} .0811399{col 67}{space 3} .1099745
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2} .0211776{col 26}{space 2} .0154335{col 37}{space 1}    1.37{col 46}{space 3}0.188{col 54}{space 4}-.0113842{col 67}{space 3} .0537393
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2} .0147136{col 26}{space 2} .0087646{col 37}{space 1}    1.68{col 46}{space 3}0.111{col 54}{space 4}-.0037781{col 67}{space 3} .0332054
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0731297{col 26}{space 2}  .016632{col 37}{space 1}    4.40{col 46}{space 3}0.000{col 54}{space 4} .0380392{col 67}{space 3} .1082203
{txt}{space 8}HON  {c |}{col 14}{res}{space 2} .0023606{col 26}{space 2} .0112031{col 37}{space 1}    0.21{col 46}{space 3}0.836{col 54}{space 4} -.021276{col 67}{space 3} .0259972
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2} .0483653{col 26}{space 2}  .006425{col 37}{space 1}    7.53{col 46}{space 3}0.000{col 54}{space 4} .0348097{col 67}{space 3} .0619209
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2} .0548547{col 26}{space 2} .0105468{col 37}{space 1}    5.20{col 46}{space 3}0.000{col 54}{space 4} .0326029{col 67}{space 3} .0771064
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} .0711357{col 26}{space 2} .0128587{col 37}{space 1}    5.53{col 46}{space 3}0.000{col 54}{space 4} .0440061{col 67}{space 3} .0982652
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}   .02545{col 26}{space 2} .0072476{col 37}{space 1}    3.51{col 46}{space 3}0.003{col 54}{space 4} .0101589{col 67}{space 3}  .040741
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .0365372{col 26}{space 2}  .003987{col 37}{space 1}    9.16{col 46}{space 3}0.000{col 54}{space 4} .0281253{col 67}{space 3} .0449491
{txt}{space 8}URU  {c |}{col 14}{res}{space 2} .0098841{col 26}{space 2} .0051857{col 37}{space 1}    1.91{col 46}{space 3}0.074{col 54}{space 4}-.0010569{col 67}{space 3}  .020825
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2} .1027586{col 26}{space 2} .0018413{col 37}{space 1}   55.81{col 46}{space 3}0.000{col 54}{space 4} .0988737{col 67}{space 3} .1066434
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-5.766079{col 26}{space 2} 1.504666{col 37}{space 1}   -3.83{col 46}{space 3}0.001{col 54}{space 4}-8.940647{col 67}{space 3} -2.59151
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres8
{txt}
{com}. reg typeb efn exratelog  year i.pais if leg_elec==0 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     117
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.2751
                                                       {txt}Root MSE      = {res} .09237

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}-.0068631{col 26}{space 2} .0112718{col 37}{space 1}   -0.61{col 46}{space 3}0.551{col 54}{space 4}-.0306445{col 67}{space 3} .0169183
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}  .013945{col 26}{space 2} .0077447{col 37}{space 1}    1.80{col 46}{space 3}0.090{col 54}{space 4} -.002395{col 67}{space 3} .0302849
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0015506{col 26}{space 2} .0014049{col 37}{space 1}    1.10{col 46}{space 3}0.285{col 54}{space 4}-.0014134{col 67}{space 3} .0045147
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .0395149{col 26}{space 2} .0151196{col 37}{space 1}    2.61{col 46}{space 3}0.018{col 54}{space 4} .0076154{col 67}{space 3} .0714144
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2} .1165989{col 26}{space 2}  .007908{col 37}{space 1}   14.74{col 46}{space 3}0.000{col 54}{space 4} .0999144{col 67}{space 3} .1332834
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.1212665{col 26}{space 2} .0473806{col 37}{space 1}   -2.56{col 46}{space 3}0.020{col 54}{space 4}-.2212308{col 67}{space 3}-.0213023
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.0718112{col 26}{space 2} .0529948{col 37}{space 1}   -1.36{col 46}{space 3}0.193{col 54}{space 4}-.1836205{col 67}{space 3} .0399981
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.0219718{col 26}{space 2} .0421865{col 37}{space 1}   -0.52{col 46}{space 3}0.609{col 54}{space 4}-.1109776{col 67}{space 3}  .067034
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} .0692739{col 26}{space 2} .0207564{col 37}{space 1}    3.34{col 46}{space 3}0.004{col 54}{space 4} .0254817{col 67}{space 3}  .113066
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2} .0279981{col 26}{space 2} .0225031{col 37}{space 1}    1.24{col 46}{space 3}0.230{col 54}{space 4}-.0194792{col 67}{space 3} .0754754
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2} .0320019{col 26}{space 2} .0085366{col 37}{space 1}    3.75{col 46}{space 3}0.002{col 54}{space 4} .0139911{col 67}{space 3} .0500126
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0673406{col 26}{space 2} .0177769{col 37}{space 1}    3.79{col 46}{space 3}0.001{col 54}{space 4} .0298347{col 67}{space 3} .1048465
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.0323702{col 26}{space 2} .0224197{col 37}{space 1}   -1.44{col 46}{space 3}0.167{col 54}{space 4}-.0796716{col 67}{space 3} .0149312
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2} .0437231{col 26}{space 2} .0092392{col 37}{space 1}    4.73{col 46}{space 3}0.000{col 54}{space 4}   .02423{col 67}{space 3} .0632161
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2} .0273443{col 26}{space 2} .0197103{col 37}{space 1}    1.39{col 46}{space 3}0.183{col 54}{space 4}-.0142408{col 67}{space 3} .0689293
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} .0916162{col 26}{space 2} .0142433{col 37}{space 1}    6.43{col 46}{space 3}0.000{col 54}{space 4} .0615655{col 67}{space 3} .1216668
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0824997{col 26}{space 2} .0603996{col 37}{space 1}   -1.37{col 46}{space 3}0.190{col 54}{space 4}-.2099318{col 67}{space 3} .0449324
{txt}{space 8}PER  {c |}{col 14}{res}{space 2}-.0113592{col 26}{space 2}  .003248{col 37}{space 1}   -3.50{col 46}{space 3}0.003{col 54}{space 4}-.0182118{col 67}{space 3}-.0045067
{txt}{space 8}URU  {c |}{col 14}{res}{space 2} .0154337{col 26}{space 2} .0120867{col 37}{space 1}    1.28{col 46}{space 3}0.219{col 54}{space 4} -.010067{col 67}{space 3} .0409344
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2} .1595343{col 26}{space 2}  .013477{col 37}{space 1}   11.84{col 46}{space 3}0.000{col 54}{space 4} .1311003{col 67}{space 3} .1879684
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} -3.01119{col 26}{space 2} 2.798545{col 37}{space 1}   -1.08{col 46}{space 3}0.297{col 54}{space 4}-8.915605{col 67}{space 3} 2.893225
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres9
{txt}
{com}. reg typeb efn inflalog growth exratelog year i.pais if leg_elec==0, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     116
                                                       {help j_robustsingular:F(  4,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.3573
                                                       {txt}Root MSE      = {res} .08827

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}-.0079863{col 26}{space 2} .0099781{col 37}{space 1}   -0.80{col 46}{space 3}0.435{col 54}{space 4}-.0290383{col 67}{space 3} .0130656
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0322743{col 26}{space 2} .0170923{col 37}{space 1}    1.89{col 46}{space 3}0.076{col 54}{space 4}-.0037873{col 67}{space 3}  .068336
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0011282{col 26}{space 2} .0025683{col 37}{space 1}   -0.44{col 46}{space 3}0.666{col 54}{space 4}-.0065469{col 67}{space 3} .0042905
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2} .0131743{col 26}{space 2} .0074347{col 37}{space 1}    1.77{col 46}{space 3}0.094{col 54}{space 4}-.0025115{col 67}{space 3}   .02886
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0034765{col 26}{space 2} .0012412{col 37}{space 1}    2.80{col 46}{space 3}0.012{col 54}{space 4} .0008577{col 67}{space 3} .0060952
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .0609265{col 26}{space 2} .0128889{col 37}{space 1}    4.73{col 46}{space 3}0.000{col 54}{space 4} .0337333{col 67}{space 3} .0881196
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2} .1012093{col 26}{space 2}  .010936{col 37}{space 1}    9.25{col 46}{space 3}0.000{col 54}{space 4} .0781362{col 67}{space 3} .1242823
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.0688111{col 26}{space 2} .0516479{col 37}{space 1}   -1.33{col 46}{space 3}0.200{col 54}{space 4}-.1777786{col 67}{space 3} .0401564
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.0665001{col 26}{space 2} .0508805{col 37}{space 1}   -1.31{col 46}{space 3}0.209{col 54}{space 4}-.1738485{col 67}{space 3} .0408484
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.0110159{col 26}{space 2}  .040612{col 37}{space 1}   -0.27{col 46}{space 3}0.789{col 54}{space 4}-.0966997{col 67}{space 3} .0746679
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} .0768222{col 26}{space 2} .0205985{col 37}{space 1}    3.73{col 46}{space 3}0.002{col 54}{space 4} .0333632{col 67}{space 3} .1202812
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2} .0217981{col 26}{space 2} .0200538{col 37}{space 1}    1.09{col 46}{space 3}0.292{col 54}{space 4}-.0205118{col 67}{space 3} .0641079
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}  .051336{col 26}{space 2} .0150972{col 37}{space 1}    3.40{col 46}{space 3}0.003{col 54}{space 4} .0194838{col 67}{space 3} .0831883
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0786758{col 26}{space 2}  .012809{col 37}{space 1}    6.14{col 46}{space 3}0.000{col 54}{space 4} .0516512{col 67}{space 3} .1057004
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.0149769{col 26}{space 2} .0239411{col 37}{space 1}   -0.63{col 46}{space 3}0.540{col 54}{space 4}-.0654883{col 67}{space 3} .0355344
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2} .0426383{col 26}{space 2} .0107333{col 37}{space 1}    3.97{col 46}{space 3}0.001{col 54}{space 4}  .019993{col 67}{space 3} .0652836
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2} .0326606{col 26}{space 2}  .023097{col 37}{space 1}    1.41{col 46}{space 3}0.175{col 54}{space 4}-.0160698{col 67}{space 3}  .081391
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} .1713298{col 26}{space 2} .0402332{col 37}{space 1}    4.26{col 46}{space 3}0.001{col 54}{space 4}  .086445{col 67}{space 3} .2562145
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2} -.075293{col 26}{space 2} .0584635{col 37}{space 1}   -1.29{col 46}{space 3}0.215{col 54}{space 4}-.1986402{col 67}{space 3} .0480543
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .0231975{col 26}{space 2} .0193825{col 37}{space 1}    1.20{col 46}{space 3}0.248{col 54}{space 4}-.0176961{col 67}{space 3} .0640911
{txt}{space 8}URU  {c |}{col 14}{res}{space 2} .0036199{col 26}{space 2} .0148439{col 37}{space 1}    0.24{col 46}{space 3}0.810{col 54}{space 4} -.027698{col 67}{space 3} .0349378
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2} .1328291{col 26}{space 2} .0190333{col 37}{space 1}    6.98{col 46}{space 3}0.000{col 54}{space 4} .0926724{col 67}{space 3} .1729857
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-6.935216{col 26}{space 2} 2.497006{col 37}{space 1}   -2.78{col 46}{space 3}0.013{col 54}{space 4}-12.20344{col 67}{space 3}-1.666994
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo pres10
{txt}
{com}. 
. estout pres6 pres8 pres9 pres10 using prestypeb.xls,    ///
>                         cells(b(star fmt(%9.3f)) se(par)) nobaselevels               ///
>              stats(pr2 N, fmt(2) labels( N))   starlevels(+ 0.10 * 0.05 ** 0.01)   ///
>              legend label collabels(none) varlabels(_cons Constant) replace 
{res}{txt}(note: file prestypeb.xls not found)
(output written to {browse  `"prestypeb.xls"'})

{com}. 
. reg typea efn inflalog  year i.pais if leg_elec==1 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     163
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.4904
                                                       {txt}Root MSE      = {res} .17291

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0026611{col 26}{space 2} .0066343{col 37}{space 1}    0.40{col 46}{space 3}0.693{col 54}{space 4}-.0113361{col 67}{space 3} .0166584
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2}-.0046096{col 26}{space 2} .0158296{col 37}{space 1}   -0.29{col 46}{space 3}0.774{col 54}{space 4}-.0380071{col 67}{space 3} .0287879
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0049926{col 26}{space 2} .0024245{col 37}{space 1}    2.06{col 46}{space 3}0.055{col 54}{space 4}-.0001226{col 67}{space 3} .0101078
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .1721725{col 26}{space 2} .0203628{col 37}{space 1}    8.46{col 46}{space 3}0.000{col 54}{space 4} .1292108{col 67}{space 3} .2151342
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2} -.261166{col 26}{space 2} .0150548{col 37}{space 1}  -17.35{col 46}{space 3}0.000{col 54}{space 4}-.2929287{col 67}{space 3}-.2294032
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.3291825{col 26}{space 2} .0341537{col 37}{space 1}   -9.64{col 46}{space 3}0.000{col 54}{space 4}-.4012405{col 67}{space 3}-.2571246
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.1471807{col 26}{space 2} .0198409{col 37}{space 1}   -7.42{col 46}{space 3}0.000{col 54}{space 4}-.1890413{col 67}{space 3}-.1053201
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.1990919{col 26}{space 2} .0239901{col 37}{space 1}   -8.30{col 46}{space 3}0.000{col 54}{space 4}-.2497066{col 67}{space 3}-.1484772
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.2620962{col 26}{space 2} .0313037{col 37}{space 1}   -8.37{col 46}{space 3}0.000{col 54}{space 4}-.3281411{col 67}{space 3}-.1960512
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.1534046{col 26}{space 2} .0158516{col 37}{space 1}   -9.68{col 46}{space 3}0.000{col 54}{space 4}-.1868486{col 67}{space 3}-.1199607
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.2709382{col 26}{space 2} .0313567{col 37}{space 1}   -8.64{col 46}{space 3}0.000{col 54}{space 4}-.3370952{col 67}{space 3}-.2047812
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0249412{col 26}{space 2}  .018765{col 37}{space 1}    1.33{col 46}{space 3}0.201{col 54}{space 4}-.0146495{col 67}{space 3} .0645319
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.3168848{col 26}{space 2} .0331788{col 37}{space 1}   -9.55{col 46}{space 3}0.000{col 54}{space 4} -.386886{col 67}{space 3}-.2468836
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.2706508{col 26}{space 2}  .023525{col 37}{space 1}  -11.50{col 46}{space 3}0.000{col 54}{space 4}-.3202843{col 67}{space 3}-.2210174
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0322127{col 26}{space 2} .0286103{col 37}{space 1}   -1.13{col 46}{space 3}0.276{col 54}{space 4}-.0925751{col 67}{space 3} .0281497
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.2232953{col 26}{space 2} .0505878{col 37}{space 1}   -4.41{col 46}{space 3}0.000{col 54}{space 4}-.3300262{col 67}{space 3}-.1165644
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.1204098{col 26}{space 2}  .027374{col 37}{space 1}   -4.40{col 46}{space 3}0.000{col 54}{space 4}-.1781639{col 67}{space 3}-.0626558
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .1617646{col 26}{space 2}  .013339{col 37}{space 1}   12.13{col 46}{space 3}0.000{col 54}{space 4} .1336218{col 67}{space 3} .1899073
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.2936676{col 26}{space 2} .0242977{col 37}{space 1}  -12.09{col 46}{space 3}0.000{col 54}{space 4}-.3449312{col 67}{space 3}-.2424039
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.0789815{col 26}{space 2} .0173256{col 37}{space 1}   -4.56{col 46}{space 3}0.000{col 54}{space 4}-.1155353{col 67}{space 3}-.0424277
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-9.624191{col 26}{space 2} 4.861117{col 37}{space 1}   -1.98{col 46}{space 3}0.064{col 54}{space 4}-19.88025{col 67}{space 3} .6318699
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg1
{txt}
{com}. reg typea efn growth  year i.pais if leg_elec==1 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     165
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.4925
                                                       {txt}Root MSE      = {res} .17181

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0027355{col 26}{space 2} .0070694{col 37}{space 1}    0.39{col 46}{space 3}0.704{col 54}{space 4}-.0121796{col 67}{space 3} .0176506
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0005672{col 26}{space 2} .0029715{col 37}{space 1}   -0.19{col 46}{space 3}0.851{col 54}{space 4}-.0068365{col 67}{space 3} .0057022
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0053654{col 26}{space 2} .0020642{col 37}{space 1}    2.60{col 46}{space 3}0.019{col 54}{space 4} .0010103{col 67}{space 3} .0097205
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .1781011{col 26}{space 2} .0180797{col 37}{space 1}    9.85{col 46}{space 3}0.000{col 54}{space 4} .1399562{col 67}{space 3} .2162459
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.2605386{col 26}{space 2} .0158772{col 37}{space 1}  -16.41{col 46}{space 3}0.000{col 54}{space 4}-.2940366{col 67}{space 3}-.2270406
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2} -.316007{col 26}{space 2} .0124101{col 37}{space 1}  -25.46{col 46}{space 3}0.000{col 54}{space 4}  -.34219{col 67}{space 3}-.2898239
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.1401482{col 26}{space 2} .0134672{col 37}{space 1}  -10.41{col 46}{space 3}0.000{col 54}{space 4}-.1685616{col 67}{space 3}-.1117349
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.1913545{col 26}{space 2} .0177613{col 37}{space 1}  -10.77{col 46}{space 3}0.000{col 54}{space 4}-.2288277{col 67}{space 3}-.1538814
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.2520033{col 26}{space 2} .0213447{col 37}{space 1}  -11.81{col 46}{space 3}0.000{col 54}{space 4}-.2970367{col 67}{space 3}-.2069698
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.1481167{col 26}{space 2} .0118547{col 37}{space 1}  -12.49{col 46}{space 3}0.000{col 54}{space 4} -.173128{col 67}{space 3}-.1231055
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.2611363{col 26}{space 2} .0224131{col 37}{space 1}  -11.65{col 46}{space 3}0.000{col 54}{space 4}-.3084239{col 67}{space 3}-.2138488
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0320758{col 26}{space 2} .0065263{col 37}{space 1}    4.91{col 46}{space 3}0.000{col 54}{space 4} .0183066{col 67}{space 3}  .045845
{txt}{space 8}HON  {c |}{col 14}{res}{space 2} -.308106{col 26}{space 2} .0283421{col 37}{space 1}  -10.87{col 46}{space 3}0.000{col 54}{space 4}-.3679026{col 67}{space 3}-.2483094
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.2638892{col 26}{space 2} .0204633{col 37}{space 1}  -12.90{col 46}{space 3}0.000{col 54}{space 4} -.307063{col 67}{space 3}-.2207154
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2} -.030384{col 26}{space 2} .0290011{col 37}{space 1}   -1.05{col 46}{space 3}0.309{col 54}{space 4} -.091571{col 67}{space 3}  .030803
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.2070225{col 26}{space 2} .0100996{col 37}{space 1}  -20.50{col 46}{space 3}0.000{col 54}{space 4}-.2283309{col 67}{space 3}-.1857141
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.1140425{col 26}{space 2}  .026398{col 37}{space 1}   -4.32{col 46}{space 3}0.000{col 54}{space 4}-.1697374{col 67}{space 3}-.0583475
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .1671255{col 26}{space 2} .0099291{col 37}{space 1}   16.83{col 46}{space 3}0.000{col 54}{space 4} .1461768{col 67}{space 3} .1880741
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.2888043{col 26}{space 2} .0242093{col 37}{space 1}  -11.93{col 46}{space 3}0.000{col 54}{space 4}-.3398815{col 67}{space 3}-.2377271
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.0768345{col 26}{space 2} .0239862{col 37}{space 1}   -3.20{col 46}{space 3}0.005{col 54}{space 4}-.1274409{col 67}{space 3}-.0262281
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-10.38667{col 26}{space 2} 4.109269{col 37}{space 1}   -2.53{col 46}{space 3}0.022{col 54}{space 4}-19.05647{col 67}{space 3}-1.716872
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg3
{txt}
{com}. reg typea efn exratelog  year i.pais if leg_elec==1 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     136
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.5698
                                                       {txt}Root MSE      = {res}  .1665

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0008755{col 26}{space 2} .0098171{col 37}{space 1}    0.09{col 46}{space 3}0.930{col 54}{space 4}-.0198367{col 67}{space 3} .0215878
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}-.0130112{col 26}{space 2} .0148038{col 37}{space 1}   -0.88{col 46}{space 3}0.392{col 54}{space 4}-.0442445{col 67}{space 3} .0182222
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0056283{col 26}{space 2}  .002679{col 37}{space 1}    2.10{col 46}{space 3}0.051{col 54}{space 4} -.000024{col 67}{space 3} .0112806
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .2712609{col 26}{space 2} .0445421{col 37}{space 1}    6.09{col 46}{space 3}0.000{col 54}{space 4} .1772853{col 67}{space 3} .3652364
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.2938815{col 26}{space 2} .0205124{col 37}{space 1}  -14.33{col 46}{space 3}0.000{col 54}{space 4}-.3371588{col 67}{space 3}-.2506042
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.2680987{col 26}{space 2} .0897319{col 37}{space 1}   -2.99{col 46}{space 3}0.008{col 54}{space 4}-.4574165{col 67}{space 3}-.0787809
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.1058475{col 26}{space 2} .1149284{col 37}{space 1}   -0.92{col 46}{space 3}0.370{col 54}{space 4}-.3483252{col 67}{space 3} .1366302
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.1497635{col 26}{space 2} .0978603{col 37}{space 1}   -1.53{col 46}{space 3}0.144{col 54}{space 4}-.3562307{col 67}{space 3} .0567037
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.2692563{col 26}{space 2} .0670509{col 37}{space 1}   -4.02{col 46}{space 3}0.001{col 54}{space 4}-.4107214{col 67}{space 3}-.1277912
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.1722983{col 26}{space 2} .0184289{col 37}{space 1}   -9.35{col 46}{space 3}0.000{col 54}{space 4}  -.21118{col 67}{space 3}-.1334166
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.3000677{col 26}{space 2} .0398003{col 37}{space 1}   -7.54{col 46}{space 3}0.000{col 54}{space 4} -.384039{col 67}{space 3}-.2160964
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2} .0074172{col 26}{space 2}   .03351{col 37}{space 1}    0.22{col 46}{space 3}0.827{col 54}{space 4}-.0632827{col 67}{space 3} .0781171
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.3410649{col 26}{space 2} .0712689{col 37}{space 1}   -4.79{col 46}{space 3}0.000{col 54}{space 4}-.4914291{col 67}{space 3}-.1907006
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.2920322{col 26}{space 2} .0494648{col 37}{space 1}   -5.90{col 46}{space 3}0.000{col 54}{space 4}-.3963939{col 67}{space 3}-.1876705
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2} .0244401{col 26}{space 2} .0666852{col 37}{space 1}    0.37{col 46}{space 3}0.719{col 54}{space 4}-.1162532{col 67}{space 3} .1651335
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.2150392{col 26}{space 2} .0204062{col 37}{space 1}  -10.54{col 46}{space 3}0.000{col 54}{space 4}-.2580925{col 67}{space 3} -.171986
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0203585{col 26}{space 2} .1362383{col 37}{space 1}   -0.15{col 46}{space 3}0.883{col 54}{space 4}-.3077961{col 67}{space 3} .2670791
{txt}{space 8}PER  {c |}{col 14}{res}{space 2}  .207794{col 26}{space 2} .0257192{col 37}{space 1}    8.08{col 46}{space 3}0.000{col 54}{space 4} .1535313{col 67}{space 3} .2620567
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.2948715{col 26}{space 2} .0549534{col 37}{space 1}   -5.37{col 46}{space 3}0.000{col 54}{space 4}-.4108132{col 67}{space 3}-.1789299
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.1057895{col 26}{space 2} .0290227{col 37}{space 1}   -3.65{col 46}{space 3}0.002{col 54}{space 4}-.1670221{col 67}{space 3}-.0445569
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-10.86316{col 26}{space 2} 5.371197{col 37}{space 1}   -2.02{col 46}{space 3}0.059{col 54}{space 4} -22.1954{col 67}{space 3} .4690721
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg4
{txt}
{com}. reg typea efn inflalog growth exratelog year i.pais if leg_elec==1, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     134
                                                       {help j_robustsingular:F(  4,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.5737
                                                       {txt}Root MSE      = {res} .16822

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}-.0010083{col 26}{space 2} .0120389{col 37}{space 1}   -0.08{col 46}{space 3}0.934{col 54}{space 4}-.0264081{col 67}{space 3} .0243915
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0144043{col 26}{space 2}  .010275{col 37}{space 1}    1.40{col 46}{space 3}0.179{col 54}{space 4} -.007274{col 67}{space 3} .0360826
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0029211{col 26}{space 2} .0044314{col 37}{space 1}   -0.66{col 46}{space 3}0.519{col 54}{space 4}-.0122705{col 67}{space 3} .0064284
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}-.0148406{col 26}{space 2} .0137775{col 37}{space 1}   -1.08{col 46}{space 3}0.296{col 54}{space 4}-.0439086{col 67}{space 3} .0142275
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0069178{col 26}{space 2} .0023874{col 37}{space 1}    2.90{col 46}{space 3}0.010{col 54}{space 4} .0018809{col 67}{space 3} .0119548
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2} .2643129{col 26}{space 2} .0484247{col 37}{space 1}    5.46{col 46}{space 3}0.000{col 54}{space 4} .1621457{col 67}{space 3} .3664802
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.3059084{col 26}{space 2}  .023875{col 37}{space 1}  -12.81{col 46}{space 3}0.000{col 54}{space 4}-.3562802{col 67}{space 3}-.2555365
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.2435412{col 26}{space 2} .0784536{col 37}{space 1}   -3.10{col 46}{space 3}0.006{col 54}{space 4} -.409064{col 67}{space 3}-.0780185
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.1112123{col 26}{space 2}  .108157{col 37}{space 1}   -1.03{col 46}{space 3}0.318{col 54}{space 4}-.3394036{col 67}{space 3} .1169789
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.1549142{col 26}{space 2} .0938929{col 37}{space 1}   -1.65{col 46}{space 3}0.117{col 54}{space 4}-.3530109{col 67}{space 3} .0431826
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.2726937{col 26}{space 2} .0682203{col 37}{space 1}   -4.00{col 46}{space 3}0.001{col 54}{space 4}-.4166259{col 67}{space 3}-.1287615
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.1850835{col 26}{space 2} .0204464{col 37}{space 1}   -9.05{col 46}{space 3}0.000{col 54}{space 4}-.2282217{col 67}{space 3}-.1419453
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.3085554{col 26}{space 2} .0489457{col 37}{space 1}   -6.30{col 46}{space 3}0.000{col 54}{space 4}-.4118218{col 67}{space 3}-.2052889
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.0023115{col 26}{space 2}  .035069{col 37}{space 1}   -0.07{col 46}{space 3}0.948{col 54}{space 4}-.0763007{col 67}{space 3} .0716776
{txt}{space 8}HON  {c |}{col 14}{res}{space 2} -.350631{col 26}{space 2} .0772989{col 37}{space 1}   -4.54{col 46}{space 3}0.000{col 54}{space 4}-.5137175{col 67}{space 3}-.1875445
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.3082695{col 26}{space 2} .0573752{col 37}{space 1}   -5.37{col 46}{space 3}0.000{col 54}{space 4}-.4293207{col 67}{space 3}-.1872183
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2} .0132123{col 26}{space 2} .0716659{col 37}{space 1}    0.18{col 46}{space 3}0.856{col 54}{space 4}-.1379896{col 67}{space 3} .1644142
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.1966579{col 26}{space 2} .0406485{col 37}{space 1}   -4.84{col 46}{space 3}0.000{col 54}{space 4}-.2824188{col 67}{space 3} -.110897
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0254916{col 26}{space 2}  .129856{col 37}{space 1}   -0.20{col 46}{space 3}0.847{col 54}{space 4}-.2994637{col 67}{space 3} .2484806
{txt}{space 8}PER  {c |}{col 14}{res}{space 2} .2155402{col 26}{space 2} .0273704{col 37}{space 1}    7.87{col 46}{space 3}0.000{col 54}{space 4} .1577937{col 67}{space 3} .2732868
{txt}{space 8}URU  {c |}{col 14}{res}{space 2} -.316005{col 26}{space 2} .0632451{col 37}{space 1}   -5.00{col 46}{space 3}0.000{col 54}{space 4}-.4494405{col 67}{space 3}-.1825694
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.1437617{col 26}{space 2} .0470493{col 37}{space 1}   -3.06{col 46}{space 3}0.007{col 54}{space 4}-.2430271{col 67}{space 3}-.0444964
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-13.44659{col 26}{space 2}  4.77564{col 37}{space 1}   -2.82{col 46}{space 3}0.012{col 54}{space 4}-23.52231{col 67}{space 3}-3.370873
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg5
{txt}
{com}. 
. estout leg1 leg3 leg4 leg5 using legtypea.xls,  ///
>                         cells(b(star fmt(%9.3f)) se(par)) nobaselevels               ///
>              stats(pr2 N, fmt(2) labels( N))   starlevels(+ 0.10 * 0.05 ** 0.01)   ///
>              legend label collabels(none) varlabels(_cons Constant) replace 
{res}{txt}(note: file legtypea.xls not found)
(output written to {browse  `"legtypea.xls"'})

{com}. 
. reg typeb efn inflalog  year i.pais if leg_elec==1 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     163
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.2410
                                                       {txt}Root MSE      = {res} .07867

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0069951{col 26}{space 2} .0022707{col 37}{space 1}    3.08{col 46}{space 3}0.007{col 54}{space 4} .0022043{col 67}{space 3} .0117859
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0014974{col 26}{space 2} .0058195{col 37}{space 1}    0.26{col 46}{space 3}0.800{col 54}{space 4}-.0107806{col 67}{space 3} .0137754
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0017746{col 26}{space 2} .0007491{col 37}{space 1}    2.37{col 46}{space 3}0.030{col 54}{space 4} .0001941{col 67}{space 3} .0033551
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2}-.0710826{col 26}{space 2} .0061279{col 37}{space 1}  -11.60{col 46}{space 3}0.000{col 54}{space 4}-.0840114{col 67}{space 3}-.0581538
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.0735694{col 26}{space 2} .0047837{col 37}{space 1}  -15.38{col 46}{space 3}0.000{col 54}{space 4}-.0836621{col 67}{space 3}-.0634768
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.0911282{col 26}{space 2} .0130879{col 37}{space 1}   -6.96{col 46}{space 3}0.000{col 54}{space 4}-.1187413{col 67}{space 3}-.0635152
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.0498638{col 26}{space 2} .0061724{col 37}{space 1}   -8.08{col 46}{space 3}0.000{col 54}{space 4}-.0628863{col 67}{space 3}-.0368412
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.0511795{col 26}{space 2} .0073912{col 37}{space 1}   -6.92{col 46}{space 3}0.000{col 54}{space 4}-.0667736{col 67}{space 3}-.0355854
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} .0068706{col 26}{space 2} .0096918{col 37}{space 1}    0.71{col 46}{space 3}0.488{col 54}{space 4}-.0135774{col 67}{space 3} .0273186
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.0153977{col 26}{space 2} .0057922{col 37}{space 1}   -2.66{col 46}{space 3}0.017{col 54}{space 4}-.0276181{col 67}{space 3}-.0031772
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.0860779{col 26}{space 2} .0096424{col 37}{space 1}   -8.93{col 46}{space 3}0.000{col 54}{space 4}-.1064216{col 67}{space 3}-.0657342
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.0383557{col 26}{space 2} .0068041{col 37}{space 1}   -5.64{col 46}{space 3}0.000{col 54}{space 4}-.0527111{col 67}{space 3}-.0240003
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.0643763{col 26}{space 2} .0101048{col 37}{space 1}   -6.37{col 46}{space 3}0.000{col 54}{space 4}-.0856955{col 67}{space 3}-.0430571
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.0516549{col 26}{space 2}  .007198{col 37}{space 1}   -7.18{col 46}{space 3}0.000{col 54}{space 4}-.0668414{col 67}{space 3}-.0364684
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0466749{col 26}{space 2} .0096385{col 37}{space 1}   -4.84{col 46}{space 3}0.000{col 54}{space 4}-.0670103{col 67}{space 3}-.0263395
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.0004604{col 26}{space 2} .0180636{col 37}{space 1}   -0.03{col 46}{space 3}0.980{col 54}{space 4}-.0385712{col 67}{space 3} .0376504
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0541283{col 26}{space 2} .0081872{col 37}{space 1}   -6.61{col 46}{space 3}0.000{col 54}{space 4}-.0714018{col 67}{space 3}-.0368547
{txt}{space 8}PER  {c |}{col 14}{res}{space 2}-.0283551{col 26}{space 2} .0041191{col 37}{space 1}   -6.88{col 46}{space 3}0.000{col 54}{space 4}-.0370457{col 67}{space 3}-.0196645
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.0688517{col 26}{space 2} .0076052{col 37}{space 1}   -9.05{col 46}{space 3}0.000{col 54}{space 4}-.0848973{col 67}{space 3}-.0528061
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2} .0002504{col 26}{space 2} .0055687{col 37}{space 1}    0.04{col 46}{space 3}0.965{col 54}{space 4}-.0114985{col 67}{space 3} .0119993
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-3.415995{col 26}{space 2} 1.503663{col 37}{space 1}   -2.27{col 46}{space 3}0.036{col 54}{space 4}-6.588447{col 67}{space 3} -.243542
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg6
{txt}
{com}. reg typeb efn growth  year i.pais if leg_elec==1 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     165
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.2579
                                                       {txt}Root MSE      = {res} .07876

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0075073{col 26}{space 2} .0023836{col 37}{space 1}    3.15{col 46}{space 3}0.006{col 54}{space 4} .0024783{col 67}{space 3} .0125364
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0010214{col 26}{space 2} .0017188{col 37}{space 1}   -0.59{col 46}{space 3}0.560{col 54}{space 4}-.0046478{col 67}{space 3}  .002605
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0017198{col 26}{space 2} .0005991{col 37}{space 1}    2.87{col 46}{space 3}0.011{col 54}{space 4} .0004559{col 67}{space 3} .0029837
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2}-.0768838{col 26}{space 2} .0059768{col 37}{space 1}  -12.86{col 46}{space 3}0.000{col 54}{space 4}-.0894937{col 67}{space 3}-.0642738
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.0797357{col 26}{space 2} .0052149{col 37}{space 1}  -15.29{col 46}{space 3}0.000{col 54}{space 4}-.0907382{col 67}{space 3}-.0687333
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.0977941{col 26}{space 2} .0058794{col 37}{space 1}  -16.63{col 46}{space 3}0.000{col 54}{space 4}-.1101986{col 67}{space 3}-.0853896
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.0556296{col 26}{space 2} .0052669{col 37}{space 1}  -10.56{col 46}{space 3}0.000{col 54}{space 4}-.0667419{col 67}{space 3}-.0445174
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.0568414{col 26}{space 2} .0066615{col 37}{space 1}   -8.53{col 46}{space 3}0.000{col 54}{space 4}-.0708959{col 67}{space 3}-.0427869
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2} .0022011{col 26}{space 2} .0088172{col 37}{space 1}    0.25{col 46}{space 3}0.806{col 54}{space 4}-.0164016{col 67}{space 3} .0208038
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.0224266{col 26}{space 2} .0033678{col 37}{space 1}   -6.66{col 46}{space 3}0.000{col 54}{space 4} -.029532{col 67}{space 3}-.0153211
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.0915682{col 26}{space 2} .0078821{col 37}{space 1}  -11.62{col 46}{space 3}0.000{col 54}{space 4}-.1081979{col 67}{space 3}-.0749385
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.0460085{col 26}{space 2} .0018197{col 37}{space 1}  -25.28{col 46}{space 3}0.000{col 54}{space 4}-.0498478{col 67}{space 3}-.0421692
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.0700077{col 26}{space 2} .0099074{col 37}{space 1}   -7.07{col 46}{space 3}0.000{col 54}{space 4}-.0909104{col 67}{space 3} -.049105
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2} -.055923{col 26}{space 2} .0078621{col 37}{space 1}   -7.11{col 46}{space 3}0.000{col 54}{space 4}-.0725106{col 67}{space 3}-.0393355
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0493748{col 26}{space 2} .0097831{col 37}{space 1}   -5.05{col 46}{space 3}0.000{col 54}{space 4}-.0700153{col 67}{space 3}-.0287343
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2}-.0115164{col 26}{space 2} .0031278{col 37}{space 1}   -3.68{col 46}{space 3}0.002{col 54}{space 4}-.0181155{col 67}{space 3}-.0049174
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.0602398{col 26}{space 2} .0082996{col 37}{space 1}   -7.26{col 46}{space 3}0.000{col 54}{space 4}-.0777504{col 67}{space 3}-.0427292
{txt}{space 8}PER  {c |}{col 14}{res}{space 2}-.0334087{col 26}{space 2} .0042903{col 37}{space 1}   -7.79{col 46}{space 3}0.000{col 54}{space 4}-.0424603{col 67}{space 3} -.024357
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.0724912{col 26}{space 2} .0086686{col 37}{space 1}   -8.36{col 46}{space 3}0.000{col 54}{space 4}-.0907804{col 67}{space 3} -.054202
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}-.0077401{col 26}{space 2} .0084281{col 37}{space 1}   -0.92{col 46}{space 3}0.371{col 54}{space 4}-.0255218{col 67}{space 3} .0100417
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-3.297952{col 26}{space 2} 1.196454{col 37}{space 1}   -2.76{col 46}{space 3}0.013{col 54}{space 4} -5.82225{col 67}{space 3}-.7736543
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg8
{txt}
{com}. reg typeb efn exratelog  year i.pais if leg_elec==1 , vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     136
                                                       {help j_robustsingular:F(  2,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.3439
                                                       {txt}Root MSE      = {res}  .0748

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0072654{col 26}{space 2} .0019447{col 37}{space 1}    3.74{col 46}{space 3}0.002{col 54}{space 4} .0031623{col 67}{space 3} .0113684
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2} .0111217{col 26}{space 2} .0104885{col 37}{space 1}    1.06{col 46}{space 3}0.304{col 54}{space 4}-.0110072{col 67}{space 3} .0332506
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0012125{col 26}{space 2} .0014905{col 37}{space 1}    0.81{col 46}{space 3}0.427{col 54}{space 4}-.0019321{col 67}{space 3} .0043571
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2}-.0698491{col 26}{space 2} .0191487{col 37}{space 1}   -3.65{col 46}{space 3}0.002{col 54}{space 4}-.1102493{col 67}{space 3} -.029449
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2}-.1162379{col 26}{space 2} .0050723{col 37}{space 1}  -22.92{col 46}{space 3}0.000{col 54}{space 4}-.1269395{col 67}{space 3}-.1055363
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.1669078{col 26}{space 2} .0627424{col 37}{space 1}   -2.66{col 46}{space 3}0.016{col 54}{space 4}-.2992827{col 67}{space 3}-.0345329
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.1197336{col 26}{space 2} .0740147{col 37}{space 1}   -1.62{col 46}{space 3}0.124{col 54}{space 4} -.275891{col 67}{space 3} .0364237
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.1218884{col 26}{space 2} .0588384{col 37}{space 1}   -2.07{col 46}{space 3}0.054{col 54}{space 4}-.2460266{col 67}{space 3} .0022498
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.0263267{col 26}{space 2} .0316235{col 37}{space 1}   -0.83{col 46}{space 3}0.417{col 54}{space 4}-.0930465{col 67}{space 3} .0403931
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.0266928{col 26}{space 2}  .009029{col 37}{space 1}   -2.96{col 46}{space 3}0.009{col 54}{space 4}-.0457423{col 67}{space 3}-.0076432
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.0864919{col 26}{space 2} .0070599{col 37}{space 1}  -12.25{col 46}{space 3}0.000{col 54}{space 4}-.1013869{col 67}{space 3}-.0715969
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.0616357{col 26}{space 2} .0179354{col 37}{space 1}   -3.44{col 46}{space 3}0.003{col 54}{space 4}-.0994761{col 67}{space 3}-.0237954
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.1062649{col 26}{space 2} .0303612{col 37}{space 1}   -3.50{col 46}{space 3}0.003{col 54}{space 4}-.1703215{col 67}{space 3}-.0422084
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.0635711{col 26}{space 2} .0152737{col 37}{space 1}   -4.16{col 46}{space 3}0.001{col 54}{space 4}-.0957959{col 67}{space 3}-.0313463
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0578482{col 26}{space 2} .0270695{col 37}{space 1}   -2.14{col 46}{space 3}0.047{col 54}{space 4}-.1149599{col 67}{space 3}-.0007365
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} .0002089{col 26}{space 2}  .004965{col 37}{space 1}    0.04{col 46}{space 3}0.967{col 54}{space 4}-.0102663{col 67}{space 3} .0106841
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.1504925{col 26}{space 2} .0851956{col 37}{space 1}   -1.77{col 46}{space 3}0.095{col 54}{space 4}-.3302395{col 67}{space 3} .0292546
{txt}{space 8}PER  {c |}{col 14}{res}{space 2}-.0593462{col 26}{space 2} .0080875{col 37}{space 1}   -7.34{col 46}{space 3}0.000{col 54}{space 4}-.0764095{col 67}{space 3} -.042283
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.0781268{col 26}{space 2} .0203193{col 37}{space 1}   -3.84{col 46}{space 3}0.001{col 54}{space 4}-.1209968{col 67}{space 3}-.0352568
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2}  .042279{col 26}{space 2} .0110265{col 37}{space 1}    3.83{col 46}{space 3}0.001{col 54}{space 4} .0190152{col 67}{space 3} .0655428
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-2.281717{col 26}{space 2} 2.984843{col 37}{space 1}   -0.76{col 46}{space 3}0.455{col 54}{space 4}-8.579185{col 67}{space 3}  4.01575
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg9
{txt}
{com}. reg typeb efn inflalog growth exratelog year i.pais if leg_elec==1, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}     134
                                                       {help j_robustsingular:F(  4,    17) =}       .
                                                       {txt}Prob > F      = {res}      .
                                                       {txt}R-squared     = {res} 0.3315
                                                       {txt}Root MSE      = {res} .07508

{txt}{ralign 78:(Std. Err. adjusted for {res:18} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0057105{col 26}{space 2} .0024255{col 37}{space 1}    2.35{col 46}{space 3}0.031{col 54}{space 4} .0005931{col 67}{space 3} .0108279
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0016315{col 26}{space 2} .0069502{col 37}{space 1}    0.23{col 46}{space 3}0.817{col 54}{space 4}-.0130323{col 67}{space 3} .0162952
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0003114{col 26}{space 2} .0026978{col 37}{space 1}   -0.12{col 46}{space 3}0.909{col 54}{space 4}-.0060032{col 67}{space 3} .0053805
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2} .0117084{col 26}{space 2}  .011002{col 37}{space 1}    1.06{col 46}{space 3}0.302{col 54}{space 4}-.0115037{col 67}{space 3} .0349206
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0013278{col 26}{space 2} .0017302{col 37}{space 1}    0.77{col 46}{space 3}0.453{col 54}{space 4}-.0023225{col 67}{space 3} .0049782
{txt}{space 12} {c |}
{space 8}pais {c |}
{space 8}BOL  {c |}{col 14}{res}{space 2}-.0654022{col 26}{space 2} .0220997{col 37}{space 1}   -2.96{col 46}{space 3}0.009{col 54}{space 4}-.1120284{col 67}{space 3}-.0187759
{txt}{space 8}BRA  {c |}{col 14}{res}{space 2} -.104288{col 26}{space 2} .0074629{col 37}{space 1}  -13.97{col 46}{space 3}0.000{col 54}{space 4}-.1200334{col 67}{space 3}-.0885426
{txt}{space 8}CHI  {c |}{col 14}{res}{space 2}-.1590103{col 26}{space 2}  .068131{col 37}{space 1}   -2.33{col 46}{space 3}0.032{col 54}{space 4}-.3027541{col 67}{space 3}-.0152665
{txt}{space 8}COL  {c |}{col 14}{res}{space 2}-.1190828{col 26}{space 2} .0766018{col 37}{space 1}   -1.55{col 46}{space 3}0.138{col 54}{space 4}-.2806984{col 67}{space 3} .0425329
{txt}{space 8}COR  {c |}{col 14}{res}{space 2}-.1208769{col 26}{space 2} .0614719{col 37}{space 1}   -1.97{col 46}{space 3}0.066{col 54}{space 4}-.2505714{col 67}{space 3} .0088175
{txt}{space 8}DOM  {c |}{col 14}{res}{space 2}-.0236427{col 26}{space 2} .0351508{col 37}{space 1}   -0.67{col 46}{space 3}0.510{col 54}{space 4}-.0978045{col 67}{space 3} .0505191
{txt}{space 8}ECU  {c |}{col 14}{res}{space 2}-.0169296{col 26}{space 2}  .008102{col 37}{space 1}   -2.09{col 46}{space 3}0.052{col 54}{space 4}-.0340233{col 67}{space 3} .0001641
{txt}{space 8}ELS  {c |}{col 14}{res}{space 2}-.0821834{col 26}{space 2} .0132383{col 37}{space 1}   -6.21{col 46}{space 3}0.000{col 54}{space 4}-.1101137{col 67}{space 3}-.0542531
{txt}{space 8}GUA  {c |}{col 14}{res}{space 2}-.0556381{col 26}{space 2} .0192797{col 37}{space 1}   -2.89{col 46}{space 3}0.010{col 54}{space 4}-.0963148{col 67}{space 3}-.0149614
{txt}{space 8}HON  {c |}{col 14}{res}{space 2}-.1052043{col 26}{space 2} .0339225{col 37}{space 1}   -3.10{col 46}{space 3}0.006{col 54}{space 4}-.1767744{col 67}{space 3}-.0336341
{txt}{space 8}MEX  {c |}{col 14}{res}{space 2}-.0610431{col 26}{space 2} .0174703{col 37}{space 1}   -3.49{col 46}{space 3}0.003{col 54}{space 4}-.0979021{col 67}{space 3} -.024184
{txt}{space 8}NIC  {c |}{col 14}{res}{space 2}-.0568202{col 26}{space 2} .0288439{col 37}{space 1}   -1.97{col 46}{space 3}0.065{col 54}{space 4}-.1176754{col 67}{space 3} .0040351
{txt}{space 8}PAN  {c |}{col 14}{res}{space 2} .0106378{col 26}{space 2} .0273588{col 37}{space 1}    0.39{col 46}{space 3}0.702{col 54}{space 4}-.0470843{col 67}{space 3} .0683599
{txt}{space 8}PAR  {c |}{col 14}{res}{space 2}-.1523279{col 26}{space 2}  .088307{col 37}{space 1}   -1.72{col 46}{space 3}0.103{col 54}{space 4}-.3386393{col 67}{space 3} .0339835
{txt}{space 8}PER  {c |}{col 14}{res}{space 2}-.0513131{col 26}{space 2} .0128008{col 37}{space 1}   -4.01{col 46}{space 3}0.001{col 54}{space 4}-.0783205{col 67}{space 3}-.0243058
{txt}{space 8}URU  {c |}{col 14}{res}{space 2}-.0767473{col 26}{space 2} .0214154{col 37}{space 1}   -3.58{col 46}{space 3}0.002{col 54}{space 4}-.1219299{col 67}{space 3}-.0315647
{txt}{space 8}VEN  {c |}{col 14}{res}{space 2} .0455319{col 26}{space 2} .0185255{col 37}{space 1}    2.46{col 46}{space 3}0.025{col 54}{space 4} .0064465{col 67}{space 3} .0846174
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-2.513738{col 26}{space 2} 3.472681{col 37}{space 1}   -0.72{col 46}{space 3}0.479{col 54}{space 4}-9.840455{col 67}{space 3} 4.812979
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo leg10
{txt}
{com}. 
. estout leg6 leg8 leg9 leg10 using legtypeb.xls,         ///
>                         cells(b(star fmt(%9.3f)) se(par)) nobaselevels               ///
>              stats(pr2 N, fmt(2) labels( N))   starlevels(+ 0.10 * 0.05 ** 0.01)   ///
>              legend label collabels(none) varlabels(_cons Constant) replace 
{res}{txt}(note: file legtypeb.xls not found)
(output written to {browse  `"legtypeb.xls"'})

{com}.                          
. *        REMMER REPLICATION             *
. 
. reg typea efn inflalog exratelog growth year if leg_elec==1 & year>=1980 & year<1990, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}      26
                                                       {txt}F(  5,    13) ={res}    2.96
                                                       {txt}Prob > F      = {res} 0.0533
                                                       {txt}R-squared     = {res} 0.3792
                                                       {txt}Root MSE      = {res} .14195

{txt}{ralign 78:(Std. Err. adjusted for {res:14} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2}-.0090012{col 26}{space 2} .0062163{col 37}{space 1}   -1.45{col 46}{space 3}0.171{col 54}{space 4}-.0224306{col 67}{space 3} .0044282
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0747932{col 26}{space 2} .0229552{col 37}{space 1}    3.26{col 46}{space 3}0.006{col 54}{space 4} .0252015{col 67}{space 3}  .124385
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2} .0198862{col 26}{space 2} .0131649{col 37}{space 1}    1.51{col 46}{space 3}0.155{col 54}{space 4}-.0085549{col 67}{space 3} .0483272
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0191155{col 26}{space 2} .0069479{col 37}{space 1}   -2.75{col 46}{space 3}0.016{col 54}{space 4}-.0341254{col 67}{space 3}-.0041055
{txt}{space 8}year {c |}{col 14}{res}{space 2}-.0003456{col 26}{space 2} .0107877{col 37}{space 1}   -0.03{col 46}{space 3}0.975{col 54}{space 4}-.0236511{col 67}{space 3} .0229598
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5992024{col 26}{space 2} 21.42083{col 37}{space 1}    0.03{col 46}{space 3}0.978{col 54}{space 4}-45.67768{col 67}{space 3} 46.87609
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo rem1
{txt}
{com}. reg typea efn inflalog exratelog growth year if leg_elec==0 & year>=1980 & year<1990, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}      23
                                                       {txt}F(  5,    13) ={res}    4.60
                                                       {txt}Prob > F      = {res} 0.0124
                                                       {txt}R-squared     = {res} 0.3849
                                                       {txt}Root MSE      = {res} .15692

{txt}{ralign 78:(Std. Err. adjusted for {res:14} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typea{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0340537{col 26}{space 2}  .025299{col 37}{space 1}    1.35{col 46}{space 3}0.201{col 54}{space 4}-.0206016{col 67}{space 3} .0887089
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0658152{col 26}{space 2} .0207198{col 37}{space 1}    3.18{col 46}{space 3}0.007{col 54}{space 4} .0210527{col 67}{space 3} .1105777
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2} .0183821{col 26}{space 2} .0113813{col 37}{space 1}    1.62{col 46}{space 3}0.130{col 54}{space 4}-.0062057{col 67}{space 3} .0429698
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0118953{col 26}{space 2}  .009196{col 37}{space 1}   -1.29{col 46}{space 3}0.218{col 54}{space 4} -.031762{col 67}{space 3} .0079715
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0117824{col 26}{space 2} .0095512{col 37}{space 1}    1.23{col 46}{space 3}0.239{col 54}{space 4}-.0088516{col 67}{space 3} .0324164
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-23.58686{col 26}{space 2} 18.91973{col 37}{space 1}   -1.25{col 46}{space 3}0.235{col 54}{space 4}-64.46046{col 67}{space 3} 17.28673
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo rem2
{txt}
{com}. 
. reg typeb efn inflalog exratelog growth year if leg_elec==1 & year>=1980 & year<1990, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}      26
                                                       {txt}F(  5,    13) ={res}   17.47
                                                       {txt}Prob > F      = {res} 0.0000
                                                       {txt}R-squared     = {res} 0.4812
                                                       {txt}Root MSE      = {res} .07643

{txt}{ralign 78:(Std. Err. adjusted for {res:14} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0112706{col 26}{space 2} .0072314{col 37}{space 1}    1.56{col 46}{space 3}0.143{col 54}{space 4} -.004352{col 67}{space 3} .0268931
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2}-.0023289{col 26}{space 2}  .010095{col 37}{space 1}   -0.23{col 46}{space 3}0.821{col 54}{space 4}-.0241377{col 67}{space 3} .0194799
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}-.0067605{col 26}{space 2} .0041125{col 37}{space 1}   -1.64{col 46}{space 3}0.124{col 54}{space 4}-.0156449{col 67}{space 3}  .002124
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0094246{col 26}{space 2}  .003246{col 37}{space 1}   -2.90{col 46}{space 3}0.012{col 54}{space 4}-.0164373{col 67}{space 3} -.002412
{txt}{space 8}year {c |}{col 14}{res}{space 2} .0112538{col 26}{space 2} .0067323{col 37}{space 1}    1.67{col 46}{space 3}0.118{col 54}{space 4}-.0032906{col 67}{space 3} .0257981
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-22.29352{col 26}{space 2} 13.36261{col 37}{space 1}   -1.67{col 46}{space 3}0.119{col 54}{space 4}-51.16169{col 67}{space 3} 6.574647
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo rem3
{txt}
{com}. reg typeb efn inflalog exratelog growth year if leg_elec==0 & year>=1980 & year<1990, vce(cluster pais)

{txt}Linear regression                                      Number of obs ={res}      23
                                                       {txt}F(  5,    13) ={res}    2.02
                                                       {txt}Prob > F      = {res} 0.1422
                                                       {txt}R-squared     = {res} 0.2359
                                                       {txt}Root MSE      = {res} .06938

{txt}{ralign 78:(Std. Err. adjusted for {res:14} clusters in pais)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       typeb{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}efncand {c |}{col 14}{res}{space 2} .0029059{col 26}{space 2} .0136531{col 37}{space 1}    0.21{col 46}{space 3}0.835{col 54}{space 4}  -.02659{col 67}{space 3} .0324017
{txt}{space 4}inflalog {c |}{col 14}{res}{space 2} .0206646{col 26}{space 2} .0149982{col 37}{space 1}    1.38{col 46}{space 3}0.192{col 54}{space 4} -.011737{col 67}{space 3} .0530661
{txt}{space 3}exratelog {c |}{col 14}{res}{space 2}-.0001399{col 26}{space 2} .0046588{col 37}{space 1}   -0.03{col 46}{space 3}0.977{col 54}{space 4}-.0102045{col 67}{space 3} .0099247
{txt}{space 6}growth {c |}{col 14}{res}{space 2}-.0059007{col 26}{space 2} .0046245{col 37}{space 1}   -1.28{col 46}{space 3}0.224{col 54}{space 4}-.0158913{col 67}{space 3}   .00409
{txt}{space 8}year {c |}{col 14}{res}{space 2}  .006477{col 26}{space 2} .0073943{col 37}{space 1}    0.88{col 46}{space 3}0.397{col 54}{space 4}-.0094974{col 67}{space 3} .0224514
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} -12.8612{col 26}{space 2} 14.64048{col 37}{space 1}   -0.88{col 46}{space 3}0.396{col 54}{space 4}-44.49005{col 67}{space 3} 18.76764
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo rem4
{txt}
{com}. 
. 
. *       Table 1: complete models: Remmer replication and complete 1978-2016 models      *
. *       Note: run the above models to generate the table below  
. 
. estout rem1 rem2 rem3 rem4 leg5 pres5 leg10 pres10 using table1.xls,    ///
>                         cells(b(star fmt(%9.3f)) se(par)) nobaselevels               ///
>              stats(pr2 N, fmt(2) labels( N))   starlevels(+ 0.10 * 0.05 ** 0.01)   ///
>              legend label collabels(none) varlabels(_cons Constant) replace 
{res}{txt}(note: file table1.xls not found)
(output written to {browse  `"table1.xls"'})

{com}. 
. 
. *       The below code creates the figure       *
. 
. gen decade=.
{txt}(314 missing values generated)

{com}. replace decade=1980 if year>=1980 & year<1990
{txt}(68 real changes made)

{com}. replace decade=1990 if year>=1990 & year<2000
{txt}(90 real changes made)

{com}. replace decade=2000 if year>=2000 & year<2010 
{txt}(89 real changes made)

{com}. replace decade=2010 if year>=2010
{txt}(55 real changes made)

{com}. 
. *       panel 1
. graph box typea typeb, over(decade) by(leg_elec) scheme(s1mono)
{res}{txt}
{com}. *       panel 2
. graph box typea7pct typeb7pct, over(decade) by(leg_elec) scheme(s1mono)
{res}{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/molliecohen/Dropbox/Parties, Candidates, Party System Institutionalization/LAPALE data.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}23 Jan 2018, 18:32:39
{txt}{.-}
{smcl}
{txt}{sf}{ul off}